mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Implement Brawl Free For All and Brawl Duel
This commit is contained in:
parent
a08aeb6141
commit
730d23164a
15 changed files with 694 additions and 2 deletions
|
|
@ -495,6 +495,13 @@ public class NewTableDialog extends MageDialog {
|
|||
return false;
|
||||
}
|
||||
break;
|
||||
case "Variant Magic - Brawl":
|
||||
case "Variant Magic - Duel Brawl":
|
||||
if (!options.getGameType().startsWith("Brawl")) {
|
||||
JOptionPane.showMessageDialog(MageFrame.getDesktop(), "Deck type Brawl needs also a Brawl game type", "Error", JOptionPane.ERROR_MESSAGE);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case "Variant Magic - Tiny Leaders":
|
||||
if (!options.getGameType().startsWith("Tiny Leaders")) {
|
||||
JOptionPane.showMessageDialog(MageFrame.getDesktop(), "Deck type Tiny Leaders needs also a Tiny Leaders game type", "Error", JOptionPane.ERROR_MESSAGE);
|
||||
|
|
@ -518,6 +525,14 @@ public class NewTableDialog extends MageDialog {
|
|||
return false;
|
||||
}
|
||||
break;
|
||||
case "Brawl Two Player Duel":
|
||||
case "Brawl Free For All":
|
||||
if (!options.getDeckType().equals("Variant Magic - Brawl")
|
||||
&& !options.getDeckType().equals("Variant Magic - Duel Brawl")) {
|
||||
JOptionPane.showMessageDialog(MageFrame.getDesktop(), "Deck type Brawl needs also a Brawl game type", "Error", JOptionPane.ERROR_MESSAGE);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case "Tiny Leaders Two Player Duel":
|
||||
if (!options.getDeckType().equals("Variant Magic - Tiny Leaders")) {
|
||||
JOptionPane.showMessageDialog(MageFrame.getDesktop(), "Deck type Tiny Leaders needs also a Tiny Leaders game type", "Error", JOptionPane.ERROR_MESSAGE);
|
||||
|
|
|
|||
|
|
@ -648,7 +648,7 @@ public class TablesPanel extends javax.swing.JPanel {
|
|||
formatFilterList.add(RowFilter.regexFilter("^Constructed - Vintage", TableTableModel.COLUMN_DECK_TYPE));
|
||||
}
|
||||
if (btnFormatCommander.isSelected()) {
|
||||
formatFilterList.add(RowFilter.regexFilter("^Commander|^Duel Commander|^Penny Dreadful Commander|^Freeform Commander|^MTGO 1v1 Commander", TableTableModel.COLUMN_DECK_TYPE));
|
||||
formatFilterList.add(RowFilter.regexFilter("^Commander|^Duel Commander|^Penny Dreadful Commander|^Freeform Commander|^MTGO 1v1 Commander|^Duel Brawl|^Brawl", TableTableModel.COLUMN_DECK_TYPE));
|
||||
}
|
||||
if (btnFormatTinyLeader.isSelected()) {
|
||||
formatFilterList.add(RowFilter.regexFilter("^Tiny", TableTableModel.COLUMN_DECK_TYPE));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue