From f42861847cd26687c8f5408d5682911a20f2a32b Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 5 Jul 2014 12:23:46 -0700 Subject: [PATCH] Closes #35 : Missed one .collide() reference --- moonlight/src/AISprite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index 34ef629..8dcc037 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -349,7 +349,7 @@ var AISprite = function(game, x, y, key, frame) { aiSprites.forEach(function(spr) { if ( hasBeenReset == true ) return; - if ( game.physics.arcade.collide(spr, this) ) { + if ( game.physics.arcade.overlap(spr, this) ) { var last = this.path[this.path.length() - 1]; this.path_tween_stop(); hasBeenReset = true;