Benthic Explorers - fixed that it doesn't allow to cast spells with opponent's mana (#6698);

This commit is contained in:
Oleg Agafonov 2020-07-05 06:25:07 +04:00
parent e2792881d5
commit 7b57865071
3 changed files with 55 additions and 12 deletions

View file

@ -182,4 +182,35 @@ public class CostReduceForEachTest extends CardTestPlayerBaseWithAIHelps {
assertGraveyardCount(playerA, "Shower of Coals", 1);
}
@Test
public void test_BenthicExplorers_ManaAbilityFromOpponentCard() {
// {T}, Untap a tapped land an opponent controls: Add one mana of any type that land could produce.
addCard(Zone.BATTLEFIELD, playerA, "Benthic Explorers", 1);
//
addCard(Zone.HAND, playerA, "Balduvian Bears", 1); // {1}{G}
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
addCard(Zone.BATTLEFIELD, playerB, "Forest", 1); // give 1 mana
//
// {1}, {T}: Tap target land.
addCard(Zone.BATTLEFIELD, playerA, "Rishadan Port", 1);
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
// prepare tapped land
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}, {T}: Tap target land", "Forest");
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);
checkPermanentTapped("must be tapped", 1, PhaseStep.PRECOMBAT_MAIN, playerA, playerB, "Forest", true, 1);
// cast with opponent's mana
checkPlayableAbility("must play", 1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cast Balduvian Bears", true);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Balduvian Bears");
setChoice(playerA, "Forest"); // mana from tapped
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, "Balduvian Bears", 1);
}
}