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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user