People keep chasing the guards even after touching the light
This commit is contained in:
@@ -385,6 +385,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.target = nearestInGroup(this, aiSprites, "townsfolk-guard");
|
this.target = nearestInGroup(this, aiSprites, "townsfolk-guard");
|
||||||
} else {
|
} else {
|
||||||
this.setAwarenessEffect(STATE_RELIEVED);
|
this.setAwarenessEffect(STATE_RELIEVED);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( this.target !== null &&
|
if ( this.target !== null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user