@lifeisacode, can you post the code so we can assist you?
while True:
# Use if/else.
if enemy:
hero.attack(enemy)
hero.attack(enemy)
pass
else:
hero.attack(Chest)
hero.attack(Chest)```
@lifeisacode, can you post the code so we can assist you?
while True:
# Use if/else.
if enemy:
hero.attack(enemy)
hero.attack(enemy)
pass
else:
hero.attack(Chest)
hero.attack(Chest)```