From 1e2424e4276914bdf00bbdfcf386f6bd324c5c11 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 11:46:18 -0700 Subject: [PATCH] People keep chasing the guards even after touching the light --- moonlight/src/AISprite.js | 1 + 1 file changed, 1 insertion(+) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index 4a09b15..60d8c29 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -385,6 +385,7 @@ var AISprite = function(game, x, y, key, frame) { this.target = nearestInGroup(this, aiSprites, "townsfolk-guard"); } else { this.setAwarenessEffect(STATE_RELIEVED); + return; } } if ( this.target !== null &&