I’ve been trying to complete this for days. So far I have completed everything except for keeping the other hero alive.
# Use your new skill to choose what to do: hero.time while True: coin = hero.findNearestItem() enemy = hero.findNearestEnemy() cleave = hero.isReady("cleave") # If it's the first 10 seconds, attack. if hero.time < 10: if cleave: hero.cleave(enemy) else: hero.attack(enemy) pass # Else, if it's the first 35 seconds, collect coins. elif hero.time < 35: hero.moveXY(coin.pos.x, coin.pos.y) pass # After 35 seconds, attack again! elif hero.time > 35: if cleave: hero.cleave(enemy) else: hero.attack(enemy) pass