fix Obeka, Splitter of Seconds (#12085)

Now adding BeginningPhases with all but Upkeep skipped.
Previously upkeep steps were added during combat phase, which was incorrect.

fix #12085
This commit is contained in:
Susucre 2024-04-11 13:24:56 +02:00
parent add0fa4f58
commit 8a29dcc735
5 changed files with 46 additions and 7 deletions

View file

@ -263,6 +263,10 @@ public class Turn implements Serializable {
default:
throw new IllegalArgumentException("Unknown phase type: " + extraPhase);
}
PhaseStep skipAllButExtraStep = extraPhaseMod.getSkipAllButExtraStep();
if (skipAllButExtraStep != null) {
phase.keepOnlyStep(skipAllButExtraStep);
}
currentPhase = phase;
game.fireEvent(new PhaseChangedEvent(activePlayerId, extraPhaseMod));
Player activePlayer = game.getPlayer(activePlayerId);