# Stay alive for one minute.
# If you win, the next time you play will be more difficult and more rewarding!
# If you lose, you must wait a day before submitting again.
coin = hero.findNearestItem()
if hero.gold >= hero.costOf("soldier"):
soldier = hero.summon("soldier")
enemy = hero.findNearest(hero.findEnemies())
soldiers = hero.findFriends()
soldierIndex = 0
while soldierIndex < len(soldiers):
soldier = soldiers[soldierIndex]
soldierIndex += 1
hero.command(soldier, "attack", enemy)
if hero.distanceTo(enemy) < 10:
if hero.canCast("chain-lightning", enemy):
My tips: in brawls try to shield, because when you go to enemy and attack you lose many health. In treasures, try not to attack enemy too, try to collect coins/gems using invisibility or something. Also, it’s good to use speed ring, you will faster collect coins/gems.