mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* GUI: added auto-fix for deck files on usage (if deck contains wrong card numbers then it will be fixed and saved automaticity);
This commit is contained in:
parent
9652d83aec
commit
c5d7a3e9f9
31 changed files with 644 additions and 567 deletions
|
|
@ -35,7 +35,7 @@ public class TxtDeckImporterTest {
|
|||
Assert.assertEquals("Deck does not contain 3 cards, found " + deck.getCards().size(), 3, deck.getCards().size());
|
||||
Assert.assertEquals("Sideboard does not contain 2 cards, found " + deck.getSideboard().size(), 2, deck.getSideboard().size());
|
||||
|
||||
DeckCardLists imported = importer.importDeck("JustLands.txt");
|
||||
DeckCardLists imported = importer.importDeck("JustLands.txt", false);
|
||||
|
||||
Assert.assertEquals("Imported deck does not contain 3 cards, found " + imported.getCards().size(), 3, imported.getCards().size());
|
||||
Assert.assertEquals("Imported sideboard does not contain 2 cards, found " + imported.getSideboard().size(), 2, imported.getSideboard().size());
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
|||
if (loadedDeckCardLists.containsKey(deckName)) {
|
||||
list = loadedDeckCardLists.get(deckName);
|
||||
} else {
|
||||
list = DeckImporter.importDeckFromFile(deckName);
|
||||
list = DeckImporter.importDeckFromFile(deckName, true);
|
||||
loadedDeckCardLists.put(deckName, list);
|
||||
}
|
||||
Deck deck = Deck.load(list, false, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue