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?