* Benthic Explorer - Fixed mana type calculation.

* DynamicManaEffect - Fixed mana type calculation.
Some code clean up.
This commit is contained in:
LevelX2 2020-08-07 17:15:06 +02:00
parent 66d5b915db
commit 457557852e
7 changed files with 148 additions and 193 deletions

View file

@ -1,9 +1,12 @@
package org.mage.test.cards.cost.modification;
import mage.abilities.mana.ManaOptions;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Assert;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBaseWithAIHelps;
import static org.mage.test.utils.ManaOptionsTestUtils.assertManaOptions;
/**
* @author JayDi85
@ -215,6 +218,27 @@ public class CostReduceForEachTest extends CardTestPlayerBaseWithAIHelps {
assertPermanentCount(playerA, "Balduvian Bears", 1);
}
@Test
public void test_BenthicExplorers_BottomlessVault() {
// {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);
// Bottomless Vault enters the battlefield tapped.
// You may choose not to untap Bottomless Vault during your untap step.
// At the beginning of your upkeep, if Bottomless Vault is tapped, put a storage counter on it.
// Tap, Remove any number of storage counters from Bottomless Vault: Add Black for each storage counter removed this way.
addCard(Zone.BATTLEFIELD, playerB, "Bottomless Vault", 1); // give 1 mana
setStrictChooseMode(true);
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();
assertAllCommandsUsed();
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
assertManaOptions("{B}", manaOptions);
}
@Test
public void test_CloudKey_ChooseCardTypeForCostReduce() {