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