I was stuck here / and it did not work
defeated = 0
enemy = hero.findNearestEnemy()
if enemy.health <= 0:
defeated += 1
if hero.time > 15:
Tell Naria how many enemies you defeated.
Collect coins until the clock reaches 30 seconds.
coinsCollected = hero.gold ()
if hero.time >30:
hero.say(“Hi Naria, I collected " + gold + " gold!”)
Fight enemies until the clock reaches 45 seconds.
Remember to reset the count of defeated enemies!
if health <=0:
if time >45: