mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Merge pull request #7071 from Dilnu/Haruspex
Create a test to verify Grim Haruspex's ability.
This commit is contained in:
commit
e1ab14e0f5
1 changed files with 25 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
package org.mage.test.cards.facedown;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class GrimHaruspexTest extends CardTestPlayerBase {
|
||||
@Test
|
||||
public void testMorphed() {
|
||||
addCard(Zone.HAND, playerA, "Wrath of God");
|
||||
addCard(Zone.HAND, playerA, "Grim Haruspex");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 7);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Grim Haruspex");
|
||||
setChoice(playerA, "Yes"); // cast it face down as 2/2 creature
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Wrath of God");
|
||||
|
||||
setStopAt(1, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Grim Haruspex", 1);
|
||||
assertHandCount(playerA, 0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue