hello guys, i just wanna get all the bonus
code:
def attackM():
enemy = hero.findNearestEnemy()
if enemy and enemy.type == 'munchkin':
if hero.isReady("chain-lightning"):
hero.cast("chain-lightning", enemy)
else:
hero.attack(enemy)
def attackS():
enemy = hero.findNearestEnemy()
if enemy and enemy.type == 'scout':
hero.attack(enemy)
if hero.isReady("root"):
hero.cast("root", enemy)
else:
if hero.isReady("chain-lightning"):
hero.cast("chain-lightning", enemy)
else:
pass
def attackO():
enemy = hero.findNearestEnemy()
if enemy and enemy.type == 'ogre':
if hero.isReady("chain-lightning"):
hero.cast("chain-lightning", enemy)
else:
hero.moveXY(1, 36)
def attackC():
enemy = hero.findNearestEnemy()
if enemy and enemy.type == 'catapult':
if hero.isReady("lightning-bolt"):
hero.cast("lightning-bolt", enemy)
else:
hero.attack(enemy)
def regen():
if hero.isReady("regen"):
hero.cast("regen", hero)
while True:
attackM()
attackS()
attackO()
attackC()
enemy = hero.findNearestEnemy()
if not enemy:
hero.moveXY(6, 36)
if hero.health < hero.maxHealth:
regen()