Hey there, recently found a bug while playing the level “Bash em all”, where hero.powerUp() wouldnt activate after the first cast.
enemies = hero.findEnemies()
items = hero.findItems()
i = 0
j = 0
while True:
while i < len(enemies):
if hero.isReady("power-up"):
hero.powerUp()
hero.powerUp() #This is a bug, this line shouldnt be neccesary
hero.attack(enemies[i])
i += 1
hero.moveXY(40, 33)
hero.moveXY(items[j].pos.x, items[j].pos.y)
j += 1
hero.moveXY(40, 33)
hero.cast("heal-wave")
else:
hero.moveXY(40, 33)
return False