mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Show playable cards - Fixed possible Null Pointer Exception.
This commit is contained in:
parent
59142feb41
commit
245582303c
1 changed files with 1 additions and 1 deletions
|
@ -2011,7 +2011,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
*/
|
||||
private boolean shouldSkipGettingPlayable(Game game) {
|
||||
for (Entry<PhaseStep, Step.StepPart> phaseStep : silentPhaseSteps.entrySet()) {
|
||||
if (game.getPhase() != null && phaseStep.getKey().equals(game.getPhase().getStep().getType())) {
|
||||
if (game.getPhase() != null && game.getPhase().getStep() != null && phaseStep.getKey().equals(game.getPhase().getStep().getType())) {
|
||||
if (phaseStep.getValue() == null || phaseStep.getValue().equals(game.getPhase().getStep().getStepPart())) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue