please help me this is my code
# You'll need good strategy to win this one!
# Your clone will have the same equipment you have!
# But, they're not very skilled at using special powers.
while True:
enemy = hero.findNearestEnemy()
if enemy:
if hero.isReady("cleave"):
hero.cleave(enemy)
elif hero.isReady("bash"):
hero.bash(enemy)
elif hero.isReady("chain-lightning"):
hero.cast("chain-lightning", enemy)
else:
hero.attack(enemy)
Try to chain-lightning and cleave to enemy archers.
this is my new code @PeterPalov
# You'll need good strategy to win this one!
# Your clone will have the same equipment you have!
# But, they're not very skilled at using special powers.
while True:
enemy = hero.findNearestEnemy()
if enemy:
if hero.isReady("cleave") and enemy.type == "archer":
hero.cleave(enemy)
elif hero.isReady("bash"):
hero.bash(enemy)
elif hero.isReady("chain-lightning")and enemy.type == "archer":
hero.cast("chain-lightning", enemy)
else:
hero.attack(enemy)
if i do my code like that it just doesn’t do the abilities on the clone as the clone attacks me
No, try to move to archers and cleave near them.
thank you so much @PeterPalov
No problem! I’m glad to help! 
Btw, don’t forget to add [SOLVED] on the name of this topic.