mirror of
https://github.com/correl/mage.git
synced 2025-04-10 01:01:05 -09:00
Fixed two bugged tests.
This commit is contained in:
parent
4bdc4936f0
commit
97e44d1000
2 changed files with 28 additions and 25 deletions
Mage.Tests/src/test/java/org/mage/test
|
@ -19,19 +19,19 @@ public class MindsDilationTest extends CardTestPlayerBase {
|
|||
@Test
|
||||
public void testExileNonLandCardAndCastIt() {
|
||||
|
||||
removeAllCardsFromLibrary(playerA);
|
||||
|
||||
/**
|
||||
* Mind's Dilation {5}{U}{U} Enchantment
|
||||
* Whenever an opponent casts his or her first spell each turn, that player exiles the top card of his or her library.
|
||||
* If it's a nonland card, you may cast it without paying its mana cost.
|
||||
* Mind's Dilation {5}{U}{U} Enchantment Whenever an opponent casts his
|
||||
* or her first spell each turn, that player exiles the top card of his
|
||||
* or her library. If it's a nonland card, you may cast it without
|
||||
* paying its mana cost.
|
||||
*/
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mind's Dilation", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||
addCard(Zone.HAND, playerA, "Lightning Bolt", 1);
|
||||
addCard(Zone.LIBRARY, playerA, "Divination", 1); // draw 2 cards
|
||||
|
||||
skipInitShuffling();
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
|
||||
setChoice(playerB, "Yes");
|
||||
|
||||
|
@ -39,7 +39,7 @@ public class MindsDilationTest extends CardTestPlayerBase {
|
|||
execute();
|
||||
|
||||
assertLife(playerB, 17);
|
||||
assertExileCount("Divination", 1);
|
||||
assertExileCount("Divination", 0);
|
||||
assertHandCount(playerB, 2); // free divination!
|
||||
}
|
||||
|
||||
|
@ -49,11 +49,11 @@ public class MindsDilationTest extends CardTestPlayerBase {
|
|||
removeAllCardsFromLibrary(playerA);
|
||||
|
||||
/**
|
||||
* Mind's Dilation {5}{U}{U} Enchantment
|
||||
* Whenever an opponent casts his or her first spell each turn, that player exiles the top card of his or her library.
|
||||
* If it's a nonland card, you may cast it without paying its mana cost.
|
||||
* Mind's Dilation {5}{U}{U} Enchantment Whenever an opponent casts his
|
||||
* or her first spell each turn, that player exiles the top card of his
|
||||
* or her library. If it's a nonland card, you may cast it without
|
||||
* paying its mana cost.
|
||||
*/
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mind's Dilation", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||
addCard(Zone.HAND, playerA, "Lightning Bolt", 1);
|
||||
|
|
|
@ -574,6 +574,9 @@ public class TestPlayer implements Player {
|
|||
i++;
|
||||
}
|
||||
}
|
||||
if (modes.getMinModes() <= modes.getSelectedModes().size()) {
|
||||
return null;
|
||||
}
|
||||
return computerPlayer.chooseMode(modes, source, game); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue