mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
- added test for #8876
This commit is contained in:
parent
ec607ae4c4
commit
751a9f8afc
1 changed files with 20 additions and 0 deletions
|
@ -62,4 +62,24 @@ public class ForetellTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Behold the Multiverse", 1); // now in graveyard
|
||||
assertHandCount(playerA, 2); // 2 cards drawn
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDreamDevourerTrigger() {
|
||||
// Issue #8876
|
||||
setStrictChooseMode(true);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Dream Devourer", 1); // if a card is foretelled, this gets +2 power
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5); // 3 mana for suspend and 2 for foretell
|
||||
addCard(Zone.HAND, playerA, "Sol Talisman", 1); // Suspend card
|
||||
addCard(Zone.HAND, playerA, "Lightning Bolt", 1); // card to foretell
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Susp"); // suspend the Sol Talisman
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Fore"); // foretell the Lightning Bolt
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertAllCommandsUsed();
|
||||
assertExileCount(playerA, "Sol Talisman", 1); // suspend card in exile
|
||||
assertExileCount(playerA, "Lightning Bolt", 1); // foretold card in exile
|
||||
assertPowerToughness(playerA, "Dream Devourer", 2, 3); // +2 power boost from trigger due to foretell of Lightning Bolt
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue