Here is my code:
def CommandPaladin(paladin):
hero.command(paladin, "move", hero.pos)
paladins = hero.findByType("paladin")
for paladin in paladins:
if paladin:
while True:
hero.moveXY(hero.pos.x + 1, hero.pos.y)
CommandPaladin(paladin)
hero.shieldBubble()
I tried but it said my hero don’t have no method of command. How can I fix this ?