mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed active player doesn't get priority while discarding cards in cleanup.
This commit is contained in:
parent
b562f57a5c
commit
7ed6935c40
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ public class CleanupStep extends Step<CleanupStep> {
|
||||||
public void beginStep(Game game, UUID activePlayerId) {
|
public void beginStep(Game game, UUID activePlayerId) {
|
||||||
super.beginStep(game, activePlayerId);
|
super.beginStep(game, activePlayerId);
|
||||||
Player activePlayer = game.getPlayer(activePlayerId);
|
Player activePlayer = game.getPlayer(activePlayerId);
|
||||||
|
game.getState().setPriorityPlayerId(activePlayer.getId());
|
||||||
//20091005 - 514.1
|
//20091005 - 514.1
|
||||||
if (!activePlayer.hasLeft() && !activePlayer.hasLost()) {
|
if (!activePlayer.hasLeft() && !activePlayer.hasLost()) {
|
||||||
activePlayer.discardToMax(game);
|
activePlayer.discardToMax(game);
|
||||||
|
|
Loading…
Reference in a new issue