Hey everyone I’m having some problems with Siege of Stonehold. The first time I wrote my code it said “missing : after if self.isReady(“cleave”)”.
I fixed the error and it still said the same thing. Does anyone know what is wrong?
Here is my code:
loop: enemy = self.findNearestEnemy() if enemy: distance = self.distanceTo(enemy) if distance < 10: self.attack(enemy) flag = self.findFlag("black") if flag: if flag.color is "black": self.pickUpFlag(flag) distance = self.distanceTo(enemy) : if distance < 5: if self.isReady("cleave") : self.cleave(enemy) self.attack(enemy)
I would really appreciate the help.
Thanks! - @Luke10