Hey so I’m making a code to beat clash of clones, but when run the code I get the error message “Line 54: Unexpected Identifier” The strange thing there is no Line 54. As a note I’m not carrying a sword, instead using the bash function on my shield to prevent the clone from attacking. I’m also using a modified version of the code from lurkers with the shaman check as a sand-yak check.
enemies = self.findEnemies()
enemyIndex = 0
while enemyIndex < len(enemies):
enemy = enemies[enemyIndex]
if enemy.type ! 'Sand-Yak':
while enemy.health > 0:
if self.isReady("Bash"):
self.bash(enemy)
else:
self.shield()
enemyIndex = enemyIndex + 1