People keep chasing the guards even after touching the light

This commit is contained in:
2014-06-22 11:53:01 -07:00
parent e1130e0c84
commit 1298489935

View File

@@ -393,7 +393,9 @@ var AISprite = function(game, x, y, key, frame) {
console.log(this.target); console.log(this.target);
addState(this, STATE_RUNNINGTOLIGHT); addState(this, STATE_RUNNINGTOLIGHT);
} else { } else {
this.setAwarenessEffect(STATE_RELIEVED); this.awareness_timer.stop();
this.awareness_change_enabled = true;
this.setAwarenessEffect(STATE_LOSTHIM);
return; return;
} }
} }