mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
* Added test to #3747.
This commit is contained in:
parent
48d6a49af7
commit
52cc8b46b1
2 changed files with 32 additions and 5 deletions
|
@ -47,17 +47,18 @@ public class AdornedPouncer extends CardImpl {
|
|||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
//double strike
|
||||
// Double strike
|
||||
addAbility(DoubleStrikeAbility.getInstance());
|
||||
|
||||
//eternalize 3WW
|
||||
// Eternalize 3WW
|
||||
addAbility(new EternalizeAbility(new ManaCostsImpl("{3}{W}{W}"), this));
|
||||
}
|
||||
|
||||
public AdornedPouncer(AdornedPouncer adornedPouncer) {
|
||||
super(adornedPouncer);
|
||||
public AdornedPouncer(final AdornedPouncer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdornedPouncer copy() {
|
||||
return new AdornedPouncer(this);
|
||||
}
|
||||
|
|
|
@ -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
Reference in a new issue