mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Escalate test confirming bug #2143
This commit is contained in:
parent
7205144c95
commit
12097817ba
1 changed files with 55 additions and 1 deletions
|
|
@ -59,7 +59,61 @@ public class EscalateTest extends CardTestPlayerBase {
|
|||
|
||||
assertGraveyardCount(playerB, "Silvercoat Lion", 1);
|
||||
assertGraveyardCount(playerA, "Savage Alliance", 1);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGaddockTeegInteraction_ThreeCMC_OneMode() {
|
||||
|
||||
// Noncreature spells with converted mana cost {4} or greater can't be cast.
|
||||
// Noncreature spells with {X} in their mana costs can't be cast.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Gaddock Teeg"); // {W}{G} 2/2 Legendary Kithkin
|
||||
|
||||
// Escalate {1} (Pay this cost for each mode chosen beyond the first.)
|
||||
// Choose one or more —
|
||||
// * Target player discards all the cards in his or her hand, then draws that many cards.
|
||||
// * Collective Defiance deals 4 damage to target creature.
|
||||
// * Collective Defiance deals 3 damage to target opponent.
|
||||
addCard(Zone.HAND, playerA, "Collective Defiance"); // {1}{R}{R} sorcery
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 3);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Collective Defiance", playerB);
|
||||
setModeChoice(playerA, "3"); // deal 3 dmg to opponent
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Gaddock Teeg", 1);
|
||||
assertGraveyardCount(playerA, "Collective Defiance", 1);
|
||||
assertLife(playerB, 17);
|
||||
}
|
||||
|
||||
// Reported bug: Escalate CMC is not calculated correctly when more than 1 mode chosen
|
||||
// With 1 extra mode, the casting cost is {2}{R}{R} but the CMC should still be 3
|
||||
@Test
|
||||
public void testGaddockTeegInteraction_ThreeCMC_TwoModes() {
|
||||
|
||||
// Noncreature spells with converted mana cost {4} or greater can't be cast.
|
||||
// Noncreature spells with {X} in their mana costs can't be cast.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Gaddock Teeg"); // {W}{G} 2/2 Legendary Kithkin
|
||||
|
||||
// Escalate {1} (Pay this cost for each mode chosen beyond the first.)
|
||||
// Choose one or more —
|
||||
// * Target player discards all the cards in his or her hand, then draws that many cards.
|
||||
// * Collective Defiance deals 4 damage to target creature.
|
||||
// * Collective Defiance deals 3 damage to target opponent.
|
||||
addCard(Zone.HAND, playerA, "Collective Defiance"); // {1}{R}{R} sorcery
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Collective Defiance", "mode2=Gaddock Teeg");
|
||||
setModeChoice(playerA, "2"); // deal 4 dmg to target creature (gaddock teeg)
|
||||
setModeChoice(playerA, "3"); // deal 3 dmg to opponent
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Collective Defiance", 1);
|
||||
assertGraveyardCount(playerB, "Gaddock Teeg", 1);
|
||||
assertLife(playerB, 17);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue