Monsters always attempt their last candidate direction, even if blocked

This commit is contained in:
Eevee (Evelyn Woods) 2020-10-24 20:32:22 -06:00
parent f1b040f176
commit a07e10218e

View File

@ -617,6 +617,12 @@ export class Level {
break;
}
}
// If all the decisions are blocked, actors still try the last one (and might even
// be able to move that way by the time their turn comes around!)
if (actor.decision === null) {
actor.decision = direction_preference[direction_preference.length - 1];
}
}
}