Using this code, my hero just stands there and not do anything. What is wrong with this?
# Use your new skill to choose what to do: hero.time while True: # If it's the first 10 seconds, attack. if hero.time < 10: if enemy: enemy = hero.findNearestEnemy hero.attack(enemy) pass # Else, if it's the first 35 seconds, collect coins. elif hero.time < 35: if coin: coin = hero.findNearestItem hero.moveXY(coin.pos.x, coin.pos.y) pass # After 35 seconds, attack again! else: hero.attack(enemy) pass