Stop chasing me if you can't see me at the end of your path

This commit is contained in:
2014-06-17 21:03:40 -07:00
parent 0850a858c9
commit c586881129

View File

@@ -993,7 +993,7 @@ var AISprite = function(game, x, y, key, frame) {
}
} else {
if ( this.path_set(player, this.blocked(true)) == true )
if ( this.canSeeSprite(player, false) == true ) {
if ( this.canSeeSprite(player, false) == false ) {
this.path_tween_stop();
} else {
this.path_tween_start();