Guards should follow the player's last known location when running to report, instead of just running blindly to coordinates (so they can see the player along the way and change course, instead of running right past the player).

This commit is contained in:
2014-07-07 21:43:25 -07:00
parent b294db5943
commit 74e3755b53

View File

@@ -459,7 +459,7 @@ var AISprite = function(game, x, y, key, frame) {
this.target = player;
}
if ( hasState(this, STATE_RUNNINGTOREPORT) ) {
this.chasetarget(this.target,
this.chasetarget(this.lastSawPlayerAt,
STATE_ALERTED,
STATE_MOVING | STATE_RUNNING,
false,