Chest not working in Munchkin Swarm

Hi,

I’m working through the level in Python and even though my code seems right I cannot get the chest to open. I’m not sure what’s wrong. Could it be a bug in the level? or have I missed something in the code.

Thanks.

while True:

nearestEnemy = hero.findNearestEnemy()
distance = hero.distanceTo(nearestEnemy)

if distance < 10:
    hero.cleave(nearestEnemy)

else:
    hero.attack("Chest")

You’re missing a while True() loop :slight_smile:

Thank you!!

I should have caught that!

yay u won congragulations