public void immune (Type primary, Type secondary)
    {
        
        if (immuneTypes.length ==0)
        {
            return;
        }
        for (int i =0; i<resistantTypes.length; i++)
        {
            if(immuneTypes[i].equalsTo(primary.showType()) || immuneTypes[i].equalsTo(secondary.showType()))
            {
                typeModifier = 0.0;
            }
        }
     
        
        
    }