Fixed active player doesn't get priority while discarding cards in cleanup.

This commit is contained in:
magenoxx 2011-08-05 17:22:54 +04:00
parent b562f57a5c
commit 7ed6935c40

View file

@ -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);