mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Changes for netMana null handling #5023.
This commit is contained in:
parent
1125513c11
commit
cd8e038679
5 changed files with 64 additions and 14 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package org.mage.test.utils;
|
||||
|
||||
import mage.abilities.mana.ManaOptions;
|
||||
|
|
@ -233,6 +232,25 @@ public class ManaOptionsTest extends CardTestPlayerBase {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNykthos5() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Sedge Scorpion", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Nykthos, Shrine to Nyx", 1);
|
||||
|
||||
setStopAt(1, PhaseStep.UPKEEP);
|
||||
execute();
|
||||
|
||||
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
|
||||
assertDuplicatedManaOptions(manaOptions);
|
||||
|
||||
Assert.assertEquals("mana variations don't fit", 3, manaOptions.size());
|
||||
assertManaOptions("{W}{W}{G}", manaOptions);
|
||||
assertManaOptions("{C}{G}{G}{G}", manaOptions);
|
||||
assertManaOptions("{G}{G}{G}{G}{G}", manaOptions);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDuplicatedDontHave1() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "City of Brass", 2); // Any
|
||||
|
|
@ -417,4 +435,23 @@ public class ManaOptionsTest extends CardTestPlayerBase {
|
|||
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
|
||||
assertManaOptions("{C}", manaOptions);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCharmedPedant() {
|
||||
// {T}, Put the top card of your library into your graveyard: For each colored mana symbol in that card's mana cost, add one mana of that color.
|
||||
// Activate this ability only any time you could cast an instant.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Charmed Pendant", 1);
|
||||
// {T}: Add {C}.
|
||||
// {T}: Add {C}{C}. Spend this mana only to cast colorless Eldrazi spells or activate abilities of colorless Eldrazi.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Eldrazi Temple", 1);
|
||||
|
||||
setStopAt(1, PhaseStep.UPKEEP);
|
||||
execute();
|
||||
|
||||
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
|
||||
assertDuplicatedManaOptions(manaOptions);
|
||||
|
||||
Assert.assertEquals("mana variations don't fit", 1, manaOptions.size());
|
||||
assertManaOptions("{C}{C}", manaOptions);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue