mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Celestial Dawn - Fixed that it was not possible to pay colorless costs with non white mana.
This commit is contained in:
parent
989250c7f6
commit
45818f3a51
5 changed files with 77 additions and 10 deletions
|
|
@ -29,6 +29,7 @@ package org.mage.test.cards.mana;
|
|||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
|
|
@ -69,4 +70,63 @@ public class SpendManaAsThoughItWereManaOfAnyColorTest extends CardTestPlayerBas
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Celestial Dawn does not allow spending of off-color mana for any purpose.
|
||||
* Had a Black Market down, was trying to cast Darksteel Forge, could not
|
||||
* spend the black mana on the forge.
|
||||
*/
|
||||
@Test
|
||||
public void testCelestialDawn() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 8);
|
||||
// Lands you control are Plains.
|
||||
// Nonland cards you own that aren't on the battlefield, spells you control, and nonland permanents you control are white.
|
||||
// You may spend white mana as though it were mana of any color.
|
||||
// You may spend other mana only as though it were colorless mana.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Celestial Dawn", 1);
|
||||
|
||||
// Whenever a creature dies, put a charge counter on Black Market.
|
||||
// At the beginning of your precombat main phase, add {B} to your mana pool for each charge counter on Black Market.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Black Market", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion", 1);
|
||||
|
||||
// Artifacts you control are indestructible.
|
||||
addCard(Zone.HAND, playerA, "Darksteel Forge", 1); // Artifact {9}
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 1);
|
||||
addCard(Zone.HAND, playerB, "Lightning Bolt", 1);
|
||||
|
||||
castSpell(1, PhaseStep.UPKEEP, playerB, "Lightning Bolt", "Silvercoat Lion");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Darksteel Forge");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Silvercoat Lion", 1);
|
||||
assertGraveyardCount(playerB, "Lightning Bolt", 1);
|
||||
assertCounterCount("Black Market", CounterType.CHARGE, 1);
|
||||
|
||||
assertPermanentCount(playerA, "Darksteel Forge", 1);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCelestialDawnAny() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
// Lands you control are Plains.
|
||||
// Nonland cards you own that aren't on the battlefield, spells you control, and nonland permanents you control are white.
|
||||
// You may spend white mana as though it were mana of any color.
|
||||
// You may spend other mana only as though it were colorless mana.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Celestial Dawn", 1);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Vedalken Mastermind", 1); // Creature {U}{U}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Vedalken Mastermind");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Vedalken Mastermind", 1);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue