From c586881129b0b269c5c09679c9366026dd7b89b6 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Tue, 17 Jun 2014 21:03:40 -0700 Subject: [PATCH] Stop chasing me if you can't see me at the end of your path --- moonlight/js/moonlight-skulk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index d8f6b56..99901a3 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -993,7 +993,7 @@ var AISprite = function(game, x, y, key, frame) { } } else { if ( this.path_set(player, this.blocked(true)) == true ) - if ( this.canSeeSprite(player, false) == true ) { + if ( this.canSeeSprite(player, false) == false ) { this.path_tween_stop(); } else { this.path_tween_start();