From 12984899354ea0cc12cdc9529efb1c1da2fa8e27 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 11:53:01 -0700 Subject: [PATCH] People keep chasing the guards even after touching the light --- moonlight/src/AISprite.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index 90060e8..e61699e 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -393,7 +393,9 @@ var AISprite = function(game, x, y, key, frame) { console.log(this.target); addState(this, STATE_RUNNINGTOLIGHT); } else { - this.setAwarenessEffect(STATE_RELIEVED); + this.awareness_timer.stop(); + this.awareness_change_enabled = true; + this.setAwarenessEffect(STATE_LOSTHIM); return; } }