Hello!
Please help understand why do I get this error:
Code:
soldiers = hero.findByType("soldier")
warlock = hero.findNearest(hero.findByType("warlock"))
if warlock:
for ss in soldiers:
hero.command(ss, "attack", warlock)
pass
bingo!
That solved my issue. @Hin_Lee, thanks for your idea!
(Not sure if this should be treated as a bug? At least I’m looking for soldiers. And get ogre. Clearly wrong type. )