Closes #35 : Missed one .collide() reference

This commit is contained in:
2014-07-05 12:23:46 -07:00
parent 7eaa027162
commit f42861847c

View File

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