Working HUNTER TRIPLET
My code might not be right overall, but what, specifically, is causing this error?
Error:
Put each command on its own line.
Unexpected token
Code:
if (enemy) {
if (self.attackRange < self.distanceTo(enemy.pos)) {
self.say("Charge")
self.setAction('move')
} else {
self.setAction("attack")
self.say("Kill")
}
}
Thanks for the help!