From 74e3755b5367918750e6290432065f895e408a14 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Mon, 7 Jul 2014 21:43:25 -0700 Subject: [PATCH] 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). --- moonlight/src/AISprite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index efb56a4..f089a03 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -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,