public int resistedCounter(Type primary, Type secondary) {
        int counter = 0;
        if (resistantTypes == null || resistantTypes.length ==0)
        {
            return 0;
        }
        for (int i = 0; i < resistantTypes.length; i++) {
            if (resistantTypes[i].equalsTo(primary.showType()) || resistantTypes[i].equalsTo(secondary.showType())) {
                counter++;
            }
        }
       
            return counter; 
        


    }