public void resisted(Type primary, Type secondary)
    {
        int counter =0;
        for (int i =0; i<resistantTypes.length; i++)
        {
            if(resistantTypes[i].equalsTo(primary.showType()) || resistantTypes[i].equalsTo(secondary.showType()))
            {
                counter ++;
            }
        }
        if (counter > 0)
        {
            typeModifier = (double) Math.pow(.5, (double) counter);
        }
        
        
    }