From 0f47a319884959a26aeec3f91751b201dbca1851 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 13:29:45 -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 e2fb9bf..05bddf1 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -396,6 +396,7 @@ var AISprite = function(game, x, y, key, frame) { this.awareness_timer.stop(); this.awareness_change_enabled = true; this.setAwarenessEffect(STATE_LOSTHIM); + this.target = null; return; } }