Close #29 : I feel so stupid.

This commit is contained in:
2014-07-07 23:14:33 -07:00
parent 74e3755b53
commit 18d0ae90f2

View File

@@ -133,6 +133,11 @@ var AISprite = function(game, x, y, key, frame) {
state != STATE_ALERTED ) { state != STATE_ALERTED ) {
return; return;
} }
if ( state == STATE_ALERTED &&
isSet(this.target) == true &&
this.target != player )
this.target = null;
awardPlayerScoreByState(state); awardPlayerScoreByState(state);
this.state_changed_at = new Phaser.Point(this.x, this.y); this.state_changed_at = new Phaser.Point(this.x, this.y);
this.startAwarenessTimer(); this.startAwarenessTimer();