I need some help with the Siege of Stonehold. My code will run on Backwoods Brawl but not on the siege. Can someone please help me? My code is attatch below. I am using Python.
enemy = hero.findNearestEnemy()
while enemy:
if hero.health < 200:
hero.moveXY(19, 69)
if hero.health >= 200:
if enemy:
if hero.isReady("power-up"):
hero.powerUp()
hero.health
else:
hero.attack(enemy)
hero.health
if hero.isReady("bash"):
hero.bash(enemy)
hero.health
else:
hero.shield()
hero.health
enemy = hero.findNearestEnemy()