Hello guys!
The last “else” doesn’t seem to work and I don’t understand why. It says “unexpected token” - fix your code.
Doesn’t the bash attack have a cooldown, just like the cleave attack?
def attack:
if enemy:
if self.isReady("cleave"):
self.cleave(enemy)
else:
if self.isReady("bash"):
hero.bash(enemy)
else:
hero.attack(enemy)