Making townsfolk report you to a guard

This commit is contained in:
2014-06-19 19:59:14 -07:00
parent c8a7316450
commit 23c747589a

View File

@@ -1075,6 +1075,7 @@ var AISprite = function(game, x, y, key, frame) {
}
if ( this.target !== null ) {
if ( this.target.canSeeSprite(this) == true ) {
console.log("I can't see my target!");
this.path_tween_stop();
this.path_purge();
}