From 8c7650796089c5b8215d3dd14919ae85dc07f8c3 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Tue, 17 Jun 2014 23:18:29 -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 6af3d28..ee0c941 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -714,7 +714,7 @@ var AISprite = function(game, x, y, key, frame) { this.canSeeSprite = function(spr, debug) { var vd = this.view_distance; - if ( hasState(this, STATE_ALERTED) ) { + if ( hasState(this, STATE_ALERTED) ) vd = vd * 2; var xd = (spr.x - this.x);