Submitted a patch for: Forest - The Agrippa Defense
Use the following code for CoffeeScript if you are playing in that mode until the patch is applied:
loop
enemy = hero.findNearestEnemy()
if enemy
# Find the distance to the enemy with distanceTo.
# If the distance is less than 5 meters...
# ... if "cleave" is ready, cleave!
# ... else, just attack.
hero.say("Remove this line once your loop is finite.")
else
hero.say("So peaceful.")
ref: