elif enemy part you never said if hero.isReady(“bash”) so it waits until its ready
if hero.isReady chainlightning part you never found an enemy so what am i supposed to cast it on?
same with the cleave one
hope this helps
What happens if bash is not ready to be used? And there will always be an enemy until late in the level. So you will not cast chain lightning or cleave. Do you want to use those or not?
I recommend you try attacking the archers first (use flags or the Boots of Leaping to get there). It helped me win that level. Cleave them whenever you can and keep attacking. Don’t use a good sword because your clone will have the advantage of dealing more damage (it has your same armor and weapons).
hero.moveXY(54, 85)
hero.moveXY(79, 89)
while True:
flag=hero.findFlag()
enemy=hero.findNearestEnemy()
if flag:
hero.pickUpFlag(flag)
elif enemy:
if hero.isReady("bash"):
hero.bash(enemy)
hero.attack(enemy)
if hero.isReady("cleave"):
hero.cleave(enemy)
if hero.isReady("chain-lightning"):
hero.cast("chain-lightning", enemy)