diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index d8aabb4..0e22d74 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1066,12 +1066,9 @@ var AISprite = function(game, x, y, key, frame) { if (this.target.canSeeSprite(this) == true) targetseesyou = true; } - if ( targetseesyou || (game.physics.arcade.collide(this, this.target) == true) ) { - if ( hasState(this, STATE_RUNNINGTOLIGHT) == true ) { - return; - } else { + if ( hasState(this, STATE_RUNNINGTOLIGHT) == false ) { console.log("My target can see me!"); this.path_tween_stop(); this.path_purge();