forked from External/mage
* Mana pool handling - Fixed bug where wrong playerId was used. Fixed that menu check state is the same for all GamePanles of client.
This commit is contained in:
parent
610c7d7462
commit
c13f7a2115
7 changed files with 32 additions and 14 deletions
|
|
@ -581,6 +581,16 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
this.repaint();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the same state for menu selections to all player areas.
|
||||
* @param manaPoolAutomatic
|
||||
*/
|
||||
public void setMenuStates(boolean manaPoolAutomatic) {
|
||||
for(PlayAreaPanel playAreaPanel: players.values()) {
|
||||
playAreaPanel.setMenuStates(manaPoolAutomatic);
|
||||
}
|
||||
}
|
||||
|
||||
private void displayStack(GameView game, BigCard bigCard, FeedbackPanel feedbackPanel, UUID gameId) {
|
||||
this.stack.loadCards(game.getStack(), bigCard, gameId, null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue