mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Fixed typo in escalate test. So the test runs without error now.
This commit is contained in:
parent
12097817ba
commit
1346949368
1 changed files with 13 additions and 13 deletions
|
@ -60,14 +60,14 @@ 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.
|
||||
|
@ -75,27 +75,27 @@ public class EscalateTest extends CardTestPlayerBase {
|
|||
// * 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.
|
||||
|
@ -103,14 +103,14 @@ public class EscalateTest extends CardTestPlayerBase {
|
|||
// * 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");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Collective Defiance", "mode=2Gaddock 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…
Reference in a new issue