mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Merge pull request #2859 from goesta/FlusterstormTest
Added Flusterstorm test
This commit is contained in:
commit
7f866f1b21
1 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
package org.mage.test.cards.single;
|
||||||
|
|
||||||
|
import mage.constants.PhaseStep;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
|
public class FlusterstormTest extends CardTestPlayerBase {
|
||||||
|
@Test
|
||||||
|
public void testThatFlusterstormGoesToGraveyard() {
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||||
|
addCard(Zone.HAND, playerA, "Spark Spray");
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerB, "Island");
|
||||||
|
addCard(Zone.HAND, playerB, "Flusterstorm");
|
||||||
|
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Spark Spray", playerB);
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Flusterstorm", "Spark Spray", "Spark Spray");
|
||||||
|
|
||||||
|
setChoice(playerA, "No");
|
||||||
|
setChoice(playerB, "No");
|
||||||
|
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertGraveyardCount(playerA, 1);
|
||||||
|
assertGraveyardCount(playerB, 1);
|
||||||
|
|
||||||
|
assertLife(playerA, 20);
|
||||||
|
assertLife(playerB, 20);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue