So, the Beam Towers are type
tower, right? Well, I am telling my minions to ignore the Beam Towers, but they still attack them anyway. Here is the code I use it ignore certain things:
def removeByType(array, excludedType): tempArray =  for enemy in array: if enemy.type is not excludedType: tempArray.append(enemy) return tempArray
And here is the code line:
enemy = paladin.findNearest(removeByType(self.findEnemies(), "tower"))
Can you tell me what I am doing wrong?