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