Making townsfolk report you to a guard

This commit is contained in:
2014-06-19 19:34:39 -07:00
parent c2e14a4f94
commit c8a7316450

View File

@@ -1074,7 +1074,7 @@ var AISprite = function(game, x, y, key, frame) {
this.target = nearest;
}
if ( this.target !== null ) {
if ( this.target(canSeeSprite, this) == true ) {
if ( this.target.canSeeSprite(this) == true ) {
this.path_tween_stop();
this.path_purge();
}