# Defeat as many ogres as you can.
# Use 'cast' and 'canCast' for spells.
while True:
enemy = hero.findNearestEnemy()
if hero.canCast("lightning-bolt") enemy and enemy:
hero.cast("lightning-bolt", enemy)
# Defeat as many ogres as you can.
# Use 'cast' and 'canCast' for spells.
while True:
enemy = hero.findNearestEnemy()
if enemy and hero.canCast("lightning-bolt"):
hero.cast("lightning-bolt", enemy)