Reset target to null when you lose someone

This commit is contained in:
2014-06-22 13:32:23 -07:00
parent 0f47a31988
commit b75ec6d5a5

View File

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