* Reverted NykthosDevotion test commented out lines.

This commit is contained in:
LevelX2 2017-04-01 00:53:47 +02:00
parent 884ae83791
commit 94f77675ec

View file

@ -51,13 +51,13 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
// Green mana doesn't empty from your mana pool as steps and phases end.
// Omnath, Locus of Mana gets +1/+1 for each green mana in your mana pool.
addCard(Zone.BATTLEFIELD, playerA, "Omnath, Locus of Mana", 1);
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Green");
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();
Assert.assertEquals("message", 6, playerA.getManaPool().getGreen()); // 6 green mana
assertPowerToughness(playerA, "Omnath, Locus of Mana", 7, 7);
}
@ -78,7 +78,7 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Green");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Untap another target permanent.","Nykthos, Shrine to Nyx");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Untap another target permanent.", "Nykthos, Shrine to Nyx");
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Green");
@ -87,12 +87,12 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
execute();
Assert.assertEquals("amount of green mana", 10, playerA.getManaPool().getGreen()); // 6G - 2G = 4G + 6G = 10G
assertPowerToughness(playerA, "Omnath, Locus of Mana", 11,11);
assertPowerToughness(playerA, "Omnath, Locus of Mana", 11, 11);
}
/*
Use Nykthos together with Kruphix, God of Horizons to save mana as colorless mana
*/
*/
@Test
public void testDoubleUseWithKruphix() {
addCard(Zone.BATTLEFIELD, playerA, "Island", 2); // to use Nykthos
@ -109,7 +109,7 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Green");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Untap another target permanent.","Nykthos, Shrine to Nyx");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Untap another target permanent.", "Nykthos, Shrine to Nyx");
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Green");
@ -117,8 +117,8 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
Assert.assertEquals("amount of colorless mana", 10, playerA.getManaPool().getColorless()); // 6 - 2 (2.Activation) = 4 + 6 = 10 colorless mana
assertPowerToughness(playerA, "Kruphix, God of Horizons", 4,7);
Assert.assertEquals("amount of colorless mana", 10, playerA.getManaPool().getColorless()); // 6 - 2 (2.Activation) = 4 + 6 = 10 colorless mana
assertPowerToughness(playerA, "Kruphix, God of Horizons", 4, 7);
}
@Test
@ -145,7 +145,7 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
activateManaAbility(1, PhaseStep.BEGIN_COMBAT, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Green");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
@ -153,68 +153,70 @@ public class NykthosShrineToNyxTest extends CardTestPlayerBase {
Assert.assertEquals("amount of green mana", 5, playerA.getManaPool().getGreen()); // 6 green mana
assertPowerToughness(playerA, "Omnath, Locus of Mana", 6, 6);
}
@Test
public void testNykthosDevotionAccurate() {
/*
/*
Nykthos, Shrine to Nyx
Legendary Land
{T}: Add {1} to your mana pool.
{2}, {T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.
*/
String nykthos = "Nykthos, Shrine to Nyx";
*/
String nykthos = "Nykthos, Shrine to Nyx";
/*
/*
Stronghold Assassin {1}{B}{B}
Creature Zombie Assassin 2/1
{T}, Sacrifice a creature: Destroy target nonblack creature.
*/
String sAssassin = "Stronghold Assassin";
*/
String sAssassin = "Stronghold Assassin";
/*
/*
Graf Harvest {B}
Enchantment
Zombies you control have menace. (They can't be blocked except by two or more creatures.)
{3}{B}, Exile a creature card from your graveyard: Create a 2/2 black Zombie creature token.
*/
String gHarvest = "Graf Harvest";
*/
String gHarvest = "Graf Harvest";
/*
/*
Erebos, God of the Dead {3}{B}
Legendary Enchantment Creature God 5/7
Indestructible
As long as your devotion to black is less than five, Erebos isn't a creature.
Your opponents can't gain life.
{1}{B}, Pay 2 life: Draw a card.
*/
String erebos = "Erebos, God of the Dead";
/*
*/
String erebos = "Erebos, God of the Dead";
/*
Phyrexian Obliterator {B}{B}{B}{B}
Creature Horror
Trample
Whenever a source deals damage to Phyrexian Obliterator, that source's controller sacrifices that many permanents.
*/
String pObliterator = "Phyrexian Obliterator";
*/
String pObliterator = "Phyrexian Obliterator";
addCard(Zone.BATTLEFIELD, playerA, nykthos);
addCard(Zone.BATTLEFIELD, playerA, sAssassin);
addCard(Zone.BATTLEFIELD, playerA, gHarvest);
addCard(Zone.BATTLEFIELD, playerA, erebos);
addCard(Zone.BATTLEFIELD, playerA, "Wastes", 2); // two colorless to pay for nykthos
//addCard(Zone.HAND, playerA, pObliterator); // just for something to cast for 4 black mana
addCard(Zone.BATTLEFIELD, playerA, nykthos);
addCard(Zone.BATTLEFIELD, playerA, sAssassin);
addCard(Zone.BATTLEFIELD, playerA, gHarvest);
addCard(Zone.BATTLEFIELD, playerA, erebos);
addCard(Zone.BATTLEFIELD, playerA, "Wastes", 2); // two colorless to pay for nykthos
addCard(Zone.HAND, playerA, pObliterator); // just for something to cast for 4 black mana
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Black"); // should produce 4 black mana
//castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, pObliterator); // costs exactly 4 black mana should be castable
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();
assertTappedCount("Wastes", true, 2);
assertTapped(nykthos, true);
Assert.assertEquals("amount of black mana", 4, playerA.getManaPool().getBlack()); // should be 4 black mana
//assertHandCount(playerA, pObliterator, 0);
//assertPermanentCount(playerA, pObliterator, 1);
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}: Choose a color. Add to your mana pool an amount of mana of that color equal to your devotion to that color.");
setChoice(playerA, "Black"); // should produce 4 black mana
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, pObliterator); // costs exactly 4 black mana should be castable
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertTappedCount("Wastes", true, 2);
assertTapped(nykthos, true);
// Assert.assertEquals("amount of black mana", 4, playerA.getManaPool().getBlack()); // should be 4 black mana
assertHandCount(playerA, pObliterator, 0);
assertPermanentCount(playerA, pObliterator, 1);
}
}