From b75ec6d5a538aee3d16d15ae4fbe5f9209b2abf3 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 13:32:23 -0700 Subject: [PATCH] Reset target to null when you lose someone --- moonlight/src/AISprite.js | 1 + 1 file changed, 1 insertion(+) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index 05bddf1..5c88146 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -397,6 +397,7 @@ var AISprite = function(game, x, y, key, frame) { this.awareness_change_enabled = true; this.setAwarenessEffect(STATE_LOSTHIM); this.target = null; + delState(this, STATE_RUNNINGTOLIGHT); return; } }