mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fixed possible null pointer exception.
This commit is contained in:
parent
bdebcbaf63
commit
70a22da8e3
1 changed files with 1 additions and 1 deletions
|
@ -714,7 +714,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
|
||||
private boolean checkPassStep(Game game) {
|
||||
if (game.getActivePlayerId().equals(playerId)) {
|
||||
if (playerId.equals(game.getActivePlayerId())) {
|
||||
return !this.getUserData().getUserSkipPrioritySteps().getYourTurn().isPhaseStepSet(game.getStep().getType());
|
||||
} else {
|
||||
return !this.getUserData().getUserSkipPrioritySteps().getOpponentTurn().isPhaseStepSet(game.getStep().getType());
|
||||
|
|
Loading…
Reference in a new issue