Reset target to null when you lose someone
This commit is contained in:
@@ -396,6 +396,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.awareness_timer.stop();
|
this.awareness_timer.stop();
|
||||||
this.awareness_change_enabled = true;
|
this.awareness_change_enabled = true;
|
||||||
this.setAwarenessEffect(STATE_LOSTHIM);
|
this.setAwarenessEffect(STATE_LOSTHIM);
|
||||||
|
this.target = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user