Making townsfolk report you to a guard
This commit is contained in:
@@ -1074,7 +1074,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.target = nearest;
|
this.target = nearest;
|
||||||
}
|
}
|
||||||
if ( this.target !== null ) {
|
if ( this.target !== null ) {
|
||||||
if ( this.target(canSeeSprite, this) == true ) {
|
if ( this.target.canSeeSprite(this) == true ) {
|
||||||
this.path_tween_stop();
|
this.path_tween_stop();
|
||||||
this.path_purge();
|
this.path_purge();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user