mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
* Added test to #3747.
This commit is contained in:
parent
48d6a49af7
commit
52cc8b46b1
2 changed files with 32 additions and 5 deletions
|
|
@ -8,7 +8,11 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
|
||||
public class EternalizeTest extends CardTestPlayerBase {
|
||||
|
||||
private String sentinel = "Steadfast Sentinel";
|
||||
// Creature - Human Cleric {3}{W} 2/3
|
||||
// Vigilance
|
||||
// Eternalize ({4}{W}{W}, Exile this card from your graveyard: Create a token that's a copy of it,
|
||||
// except it's a 4/4 black Zombie Human Cleric with no mana cost. Eternalize only as a sorcery.)
|
||||
private final String sentinel = "Steadfast Sentinel";
|
||||
|
||||
@Test
|
||||
public void testEternalize() {
|
||||
|
|
@ -22,4 +26,26 @@ public class EternalizeTest extends CardTestPlayerBase {
|
|||
assertPowerToughness(playerA, sentinel, 4, 4);
|
||||
assertAbility(playerA, sentinel, VigilanceAbility.getInstance(), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEternalizeAndFatalPush() {
|
||||
addCard(Zone.GRAVEYARD, playerA, sentinel, 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 10);
|
||||
|
||||
// Destroy target creature if it has converted mana cost 2 or less.
|
||||
// Revolt - Destroy that creature if it has converted mana cost 4 or less
|
||||
// instead if a permanent you controlled left the battlefield this turn.
|
||||
addCard(Zone.HAND, playerB, "Fatal Push"); // Instant {B}
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Swamp", 1);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Eternalize");
|
||||
castSpell(1, PhaseStep.BEGIN_COMBAT, playerB, "Fatal Push", sentinel);
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerB, "Fatal Push", 1);
|
||||
|
||||
assertPermanentCount(playerA, sentinel, 0);
|
||||
assertExileCount(playerA, sentinel, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue