Whenever I run the code my hero just stands there. Please help me.
# Use while loops to pick out the ogre loop: enemies = self.findEnemies() enemyIndex = 0 # Wrap this logic in a while loop to attack all enemies. while enemyIndex < enemies: enemy = enemies[enemyIndex] # "!=" means "not equal to." if enemy.type != "sand-yak": # While the enemy's health is greater than 0, attack it! while enemy.health != 0: self.attack(enemy) enemyIndex += 1 pass # Between waves, move back to the center. self.moveXY(40,32)