How can l get healed?
Well l haven’t wanted to type so many codes so l just used flag for my characters movements it’s simple but l need to get healed l have like 3300 health and 270 for each attack by sword and l am no wizard but l wanna know if there is anything l could do to get healed well here is my avatar oh and l have 12.000 gem if l need to buy anything to complete this level.
while True:
hero.wait(1)
if hero.time > 10:
if hero.gold > hero.costOf("soldier"):
self.summon("soldier")
enemy = hero.findNearest(hero.findEnemies())
if enemy:
soldiers = hero.findFriends()
soldierIndex = 0
soldier = soldiers[soldierIndex]
while soldierIndex < len(soldiers):
soldier = soldiers[soldierIndex]
hero.command(soldier, "attack", enemy)
soldierIndex +=1
enemy = hero.findNearestEnemy()
green = hero.findFlag("green")
nearest = hero.findNearestEnemy()
if green:
hero.pickUpFlag(green)
elif nearest and hero.distanceTo(nearest) < 25:
# Attack!
hero.attack(enemy)
pass