Advertisement
Rheat

clash clones

Jan 22nd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. while True:
  2.     enemyIndex = 0
  3.     enemies = hero.findEnemies()
  4.     while enemyIndex < len(enemies):
  5.         enemy = enemies[enemyIndex]
  6.         enemyIndex += 1
  7.         if enemy.type != 'sand-yak':
  8.             while enemy.health > 0:
  9.                 if hero.canCast("chain-lightning", enemy):
  10.                     hero.cast("chain-lightning", enemy)
  11.                 if hero.isReady("bash"):
  12.                     hero.bash(enemy)
  13.                 else:
  14.                     if hero.isReady("cleave"):
  15.                         hero.cleave(enemy)
  16.                     else:
  17.                         hero.attack(enemy)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement