From 179626016c0eedc35c6ea8a78e1c94d00739ba9b Mon Sep 17 00:00:00 2001 From: Derek Monturo Date: Mon, 15 May 2017 16:03:49 -0400 Subject: [PATCH] naga vitalist UT unable to reproduce issue. closes #3315 --- .../test/cards/mana/NagaVitalistTest.java | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/mana/NagaVitalistTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/mana/NagaVitalistTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/mana/NagaVitalistTest.java new file mode 100644 index 00000000000..e7f2ef24124 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/mana/NagaVitalistTest.java @@ -0,0 +1,56 @@ +package org.mage.test.cards.mana; + +import mage.constants.ManaType; +import mage.constants.PhaseStep; +import mage.constants.Zone; +import org.junit.Assert; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * + * @author escplan9 + */ +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. + */ + 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. + */ + @Test + public void nagaVitalist_InteractionGiftOfParadise() { + + /* + Gift of Paradise 2G + 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." + */ + 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"); + + 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)); + } +}