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