From b11491400fcaa48ab184b485707b6f742dd21b34 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 16:44:24 -0700 Subject: [PATCH] Reporting townspeople should send the guard to the player's last known locatio n - more than once --- 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 0b12a51..4310941 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -351,7 +351,7 @@ var AISprite = function(game, x, y, key, frame) { if ( this.path_index >= this.path.length ) { this.path_tween_stop(); - if ( (visual == false) || (this.canSeeSprite(target, false) == true )) { + if ( (visual == true) && (this.canSeeSprite(target, false) == true )) { this.setAwarenessEffect(alertedState); this.path_set(target, true, maxsteps, useNearestWalkable); this.path_tween_start(movingstate);