My code does not run it only summons 1 archer and that is all here is my code
def heroAttack():
enemy = hero.findNearestEnemy()
if enemy and enemy.type != "sand-yak":
if pet.isReady("shape-shift"):
pet.shapeShift()
else:
hero.scattershot(enemy)
if hero.isReady("throw"):
hero.throw(enemy)
else:
hero.scattershot(enemy)
if hero.isReady("phase-shift"):
hero.phaseShift()
else:
hero.scattershot(enemy)
if hero.canCast("chain-lightning", enemy):
hero.cast("chain-lightning", enemy)
else:
hero.scattershot(enemy)
if hero.isReady("shadow-vortex"):
hero.shadowVortex(hero.pos, {"x": 34, "y": 25})
else:
hero.scattershot(enemy)
def summonA():
if hero.gold >= 25:
hero.summon("archer")
def commandA():
enemy = hero.findNearestEnemy()
friends = hero.findByType("archer", hero.findFriends())
for friend in friends:
if enemy and enemy.type != "sand-yak":
hero.command(friend, "attack", enemy)
while True:
summonA()
commandA()
heroAttack()
It should work, it worked in every arena I tried. Is there something wrong with the arena or is it a client issue or is it my code.