I need help with the Agrippa Defense. This is Python. Here is my code.
loop: enemy = self.findNearestEnemy() if enemy: a = self.distanceTo(enemy) self.isReady("cleave") b = self.isReady("cleave") # Find the distance to the enemy with distanceTo. self.distanceTo(enemy) # If the distance is less than 5 meters... if a < 5: if b: self.cleave(enemy) # ... if "cleave" is ready, cleave! if b: self.attack(enemy) # ... else, just attack.
i can’t figure out what I am doing wrong! I’ll appreciate your help. Thanks!