Implement Brawl Free For All and Brawl Duel

This commit is contained in:
spjspj 2018-04-25 19:17:34 +10:00
parent a08aeb6141
commit 730d23164a
15 changed files with 694 additions and 2 deletions

View file

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