From c8a7316450df5a0be45d84d7467d34d28e64ee64 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 19 Jun 2014 19:34:39 -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 c03a1d7..08d4e3b 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1074,7 +1074,7 @@ var AISprite = function(game, x, y, key, frame) { this.target = nearest; } if ( this.target !== null ) { - if ( this.target(canSeeSprite, this) == true ) { + if ( this.target.canSeeSprite(this) == true ) { this.path_tween_stop(); this.path_purge(); }