hi here s my code have been at it for a while but my character just stands there then runs of screen
# Only attack enemies if their `type` is "munchkin".
while True:
enemy = hero.findEnemies()
for enemy and enemy:
if enemy and enemy.type == "munchkin":
hero.attack(enemy)
while True:
**enemy = hero.findNearestEnemy()**
if enemy and enemy.type == "munchkin":
hero.attack(enemy)
``
and it worked thank you for all your help guys its much appreciated:smiley: :smiley: :partying_face: :tada: