Hi i am having trouble in the third level.
I always end up getting killed after 38 seconds.
Is the problem with my code or my equipment(armour)?
I am having worn dragonplate helmet and armour.
while True:
enemy = hero.findNearestEnemy()
item = hero.findNearestItem()
if enemy:
ready = hero.isReady("cleave")
if ready:
hero.cleave(enemy)
else:
hero.attack(enemy)
hero.attack(enemy)
if item:
hero.moveXY(item.pos.x, item.pos.y)
It’s infinite level. No guarantee, that you will win.
Buy better equipment. Try another tactics.
My best tactic is to use fire-traps and shield(2-4 times) after I build it.
Also you need boss star 4 to summon paladins which will heal you.
You can find my code on github. Can’t publish solution here.