mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fixed potential NPE errors in getPhase usage (fixed Berserker's Frenzy, etc)
This commit is contained in:
parent
cfd7464b49
commit
a15a0daa04
81 changed files with 162 additions and 130 deletions
|
|
@ -164,8 +164,8 @@ public class GameView implements Serializable {
|
|||
companion.add(new RevealedView(name, state.getCompanion().get(name), game));
|
||||
}
|
||||
}
|
||||
this.phase = state.getTurn().getPhaseType();
|
||||
this.step = state.getTurn().getStepType();
|
||||
this.phase = state.getTurnPhaseType();
|
||||
this.step = state.getTurnStepType();
|
||||
this.turn = state.getTurnNum();
|
||||
this.activePlayerId = state.getActivePlayerId();
|
||||
if (state.getActivePlayerId() != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue