Making townsfolk report you to a guard

This commit is contained in:
2014-06-19 20:23:23 -07:00
parent 8cd0f3d060
commit bb51bc78d8

View File

@@ -1064,7 +1064,7 @@ var AISprite = function(game, x, y, key, frame) {
this.path_tween_stop(); this.path_tween_stop();
this.path_purge(); this.path_purge();
var staticLights = game.state.states.game.staticLights; var staticLights = game.state.states.game.staticLights;
this.target = nearestInGroup(staticLights); this.target = nearestInGroup(this, staticLights);
chaseState = STATE_CONCERNED; chaseState = STATE_CONCERNED;
} }
this.chasetarget(this.target, this.chasetarget(this.target,