Making townsfolk report you to a guard

This commit is contained in:
2014-06-19 20:21:16 -07:00
parent 97adba86a8
commit 8cd0f3d060

View File

@@ -1058,7 +1058,7 @@ var AISprite = function(game, x, y, key, frame) {
this.target = nearestInGroup(this, aiSprites); this.target = nearestInGroup(this, aiSprites);
} }
if ( this.target !== null ) { if ( this.target !== null ) {
var chaseStart = STATE_ALERTED; var chaseState = STATE_ALERTED;
if ( this.target.canSeeSprite(this) == true ) { if ( this.target.canSeeSprite(this) == true ) {
console.log("My target can see me!"); console.log("My target can see me!");
this.path_tween_stop(); this.path_tween_stop();