Reporting townspeople should send the guard to the player's last known location

This commit is contained in:
2014-06-22 14:04:47 -07:00
parent 97b0b89dce
commit cd12fb4320

View File

@@ -409,7 +409,7 @@ var AISprite = function(game, x, y, key, frame) {
var aiSprites = game.state.states.game.aiSprites;
this.target = nearestInGroup(this, aiSprites, "townsfolk-guard");
} else if ( hasState(this, STATE_RUNNINGTOLIGHT) == false ) {
this.target.setAwarenessState(STATE_ALERTED);
this.target.setAwarenessEffect(STATE_ALERTED);
this.target.target = this.lastSawPlayerAt
addState(this.target, STATE_RUNNINGTOREPORT);