I decided to head on back to some old replayable levels for fun and gems. This instance is for Backwoods Brawl. For some reason this code does not work and my hero just stands there.
while True: enemy = hero.findNearestEnemy() if enemy: hero.attack(enemy) if hero.gold >= hero.costOf("soldier"): hero.summon("soldier") friends = hero.findFriends() for friend in friends: hero.command(friend, "attack", enemy)
I don’t see anything wrong. Can anyone help? Thanks!