Hunter and prey possibly bug?

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?

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

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

ty for your help good sir :slight_smile:

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