* Fixed bug of any mana abilities not working correctly for mana abilities that could produce mana of any type other mana sources could produce.

This commit is contained in:
LevelX2 2017-05-17 23:20:27 +02:00
parent 6bf7a89d45
commit 1d438060fc
14 changed files with 49 additions and 45 deletions

View file

@ -16,14 +16,14 @@ public class NagaVitalistTest extends CardTestPlayerBase {
/*
Naga Vitalist 1G
Creature - Naga Druid 1/2
T: Add to your mana pool one mana of any type that a land you control could produce.
*/
T: Add to your mana pool one mana of any type that a land you control could produce.
*/
private final String nagaVitalist = "Naga Vitalist";
/*
Reported bug (issue #3315)
Naga Vitalist could not produce any color mana with a Gift of Paradise enchanted on a forest. All lands on board were forests.
*/
Naga Vitalist could not produce any color mana with a Gift of Paradise enchanted on a forest. All lands on board were forests.
*/
@Test
public void nagaVitalist_InteractionGiftOfParadise() {
@ -32,25 +32,25 @@ public class NagaVitalistTest extends CardTestPlayerBase {
Enchantment - Aura
Enchant - Land
When Gift of Paradise enters the battlefield, you gain 3 life.
Enchanted land has "T: Add two mana of any one color to your mana pool."
*/
Enchanted land has "T: Add two mana of any one color to your mana pool."
*/
String giftParadise = "Gift of Paradise";
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
addCard(Zone.BATTLEFIELD, playerA, nagaVitalist);
addCard(Zone.BATTLEFIELD, playerA, "Upwelling"); // mana pools do not empty at the end of phases or turns
addCard(Zone.HAND, playerA, giftParadise);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, giftParadise, "Forest");
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add to your mana pool one mana of any type that a land you control could produce");
setChoice(playerA, "Green");
setChoice(playerA, "Red");
setStopAt(3, PhaseStep.PRECOMBAT_MAIN);
execute();
assertLife(playerA, 23); // gift of paradise ETB
assertTapped(nagaVitalist, true);
Assert.assertEquals("one green mana has to be in the mana pool", 1, playerA.getManaPool().get(ManaType.GREEN));
Assert.assertEquals("one red mana has to be in the mana pool", 1, playerA.getManaPool().get(ManaType.RED));
}
}