hero.powerUp() not activating on first cast

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

on this level arent you supposed to bash the enemies?

im pretty sure swords are restricted

There is a sword that you can power up to make x12 damage, which also pushes the enemy much more than the shield bash, and its not restricted.

ah but u should still prob use ur shield
thats prob why it happening xd