1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-11 01:01:05 -09:00

* Skip phase of preferences will only be applied if the stack is empty.

This commit is contained in:
LevelX2 2014-10-10 14:25:44 +02:00
parent 7ad45a2a6e
commit 0a23fe1e8a

View file

@ -444,12 +444,12 @@ public class HumanPlayer extends PlayerImpl {
public boolean priority(Game game) {
passed = false;
if (!abort) {
boolean dontCheckPassStep = false;
if (passedAllTurns) {
pass(game);
return false;
}
if (game.getStack().isEmpty()) {
boolean dontCheckPassStep = false;
if (passedTurn) {
pass(game);
return false;
@ -488,10 +488,10 @@ public class HumanPlayer extends PlayerImpl {
return false;
}
}
}
if (!dontCheckPassStep && checkPassStep(game)) {
pass(game);
return false;
if (!dontCheckPassStep && checkPassStep(game)) {
pass(game);
return false;
}
}
updateGameStatePriority("priority", game);
game.firePriorityEvent(playerId);