Hunter and prey possibly bug?


#1

def summonTroops():
# Summon soldiers if you have the gold.
if hero.gold() >= hero.costOf(‘soldier’):
hero.summon(‘soldier’)
pass

I get (hero has no method gold()) with these code.
but I have fire opal pedant that have these method and other levels it worked well or did I do something wrong here?


#2

The “gold” is not method. It is property.

if hero.gold >= hero.costOf('soldier'):

#3

ty for your help good sir :slight_smile:


#4

Another minor bug - all my troops was alive, I even get extra XP && GEMS for that, but in left corner it’s not marked