v2.3.1: fixed turn rounding on transition only applying to characters

This commit is contained in:
Evan Debenham
2024-01-24 13:48:01 -05:00
parent 1cf3b4170a
commit a94186e011

View File

@@ -558,10 +558,10 @@ public abstract class Level implements Bundlable {
//spend the hero's partial turns, so the hero cannot take partial turns between floors
Dungeon.hero.spendToWhole();
for (Char ch : Actor.chars()){
//also adjust any mobs that are now ahead of the hero due to this
if (ch.cooldown() < Dungeon.hero.cooldown()){
ch.spendToWhole();
for (Actor a : Actor.all()){
//also adjust any other actors that are now ahead of the hero due to this
if (a.cooldown() < Dungeon.hero.cooldown()){
a.spendToWhole();
}
}
}