mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Fixed a problem that tapped for mana event was sent twice (fixes problem of 2 created spirits for Forbidden Orchard).
This commit is contained in:
parent
984bc0871b
commit
99864ccf5b
4 changed files with 50 additions and 16 deletions
|
|
@ -210,12 +210,12 @@ public class ConstellationTest extends CardTestPlayerBase {
|
|||
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Mephidross Vampire"); // give vampire to creatures
|
||||
} else {
|
||||
// Make sure not white mana is used here to cast the vampire
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
activateManaAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Add {B}");
|
||||
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Mephidross Vampire"); // give vampire to creatures
|
||||
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Archetype of Courage"); // make dax to creature
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
package org.mage.test.cards.mana;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class ForbiddenOrchardTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testSpiritCreation() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||
|
||||
// {T}: Add one mana of any color.
|
||||
// Whenever you tap Forbidden Orchard for mana, create a 1/1 colorless Spirit creature token under target opponent's control.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forbidden Orchard", 1);
|
||||
addCard(Zone.HAND, playerA, "Silvercoat Lion", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Silvercoat Lion");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
|
||||
assertPermanentCount(playerB, "Spirit", 1);
|
||||
assertPermanentCount(playerA, "Spirit", 0);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue