From d6dc3bffe47ed4bfa66ef0ff22f0ea922acf981f Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 16:45:27 -0700 Subject: [PATCH] Reporting townspeople should send the guard to the player's last known locatio n - more than once --- moonlight/src/AISprite.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index 4310941..40fb4ae 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -351,7 +351,8 @@ var AISprite = function(game, x, y, key, frame) { if ( this.path_index >= this.path.length ) { this.path_tween_stop(); - if ( (visual == true) && (this.canSeeSprite(target, false) == true )) { + if ( ((visual == true) && (this.canSeeSprite(target, false) == true )) || + (visual == false)) { this.setAwarenessEffect(alertedState); this.path_set(target, true, maxsteps, useNearestWalkable); this.path_tween_start(movingstate);