From 23148f4d6da7ef0b67c098fc3bf53181bd774243 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 19 Jun 2014 20:54:51 -0700 Subject: [PATCH] Making townsfolk report you to a guard --- 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 e8dd774..d8aabb4 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1062,7 +1062,7 @@ var AISprite = function(game, x, y, key, frame) { } if ( this.target !== null ) { var targetseesyou = false; - if (typeof this.target.canSeeSprite !== undefined) { + if (this.target.canSeeSprite) { if (this.target.canSeeSprite(this) == true) targetseesyou = true; }