@ducky @CodingGeek14 @dedreous @Deadpool198 @PythonCoding @nick @Code_Master @Chaboi_3000 @DevinIV1 @shithappens
help me please this is python
# Another chest in the field for the hero to break open!
# Attack the chest to break it open.
# Some munchkins won't stand idly by while you attack it!
# Defend yourself when a munchkin gets too close.
while True:
enemy = hero.findNearestEnemy()
distance = hero.distanceTo(enemy)
if hero.isReady("cleave"):
# First priority is to cleave if it's ready:
ready = hero.isReady("cleave")
pass
elif distance < 5:
# Attack the nearest munchkin that gets too close:
hero.attack(hero.findNearestEnemy())
pass
else:
# Otherwise, try to break open the chest:
# Use the name of the chest to attack: "Chest".
hero.attack("Chest")
pass
i need help on maniac munchkins i am stuck and i have been stuck on this for about two days now please help me.