Reset target to null when you lose someone

This commit is contained in:
2014-06-22 13:29:45 -07:00
parent 801b50bf16
commit 0f47a31988

View File

@@ -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;
}
}