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);