Plz help
I can’t play without equipting a sword?
here’s 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()
flag = hero.findFlag("green")
if enemy:
if self.isReady("bash"):
hero.bash(enemy)
hero.attack(enemy)
hero.attack(enemy)
hero.shield()
hero.cast("chain-lightning", enemy)
enemy3 = hero.findNearestEnemy()
hero.attack(enemy3)
hero.moveXY(50, 68)
hero.moveXY(44, 61)
hero.moveXY(50, 68)
Choose a mediocre sword, and the yaks will only attack if attack them. They count as enemies, so do if enemy and enemy.type != "sand-yak": to avoid the yaks. My advice is that your clone can’t do any “special” attacks, like bash or chain-lightning.