|
@@ -44,7 +44,7 @@ module EveryTurn {
|
|
let person = people[i];
|
|
let person = people[i];
|
|
if (person.getHealthOnScale() > 0) {
|
|
if (person.getHealthOnScale() > 0) {
|
|
let action = await people[i].AI.execute();
|
|
let action = await people[i].AI.execute();
|
|
- let visible = people[i].isVisibleTo(WorldState.player);
|
|
|
|
|
|
+ let visible = people[i].isVisibleTo(WorldState.player); // Was the actor visible BEFORE doing the action?
|
|
if (action == undefined) action = new ActionWait(person);
|
|
if (action == undefined) action = new ActionWait(person);
|
|
let printValue: Say = await action.execute();
|
|
let printValue: Say = await action.execute();
|
|
|
|
|