mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Anafenza the Foremost - Fixed that animated permanents (e.g. Lavaclaw Reaches) were not moved to exile if they died while beeing a creatures.
This commit is contained in:
parent
520c6672af
commit
963f371c12
6 changed files with 96 additions and 26 deletions
|
|
@ -64,4 +64,29 @@ public class TargetedTriggeredTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerB, "Kira, Great Glass-Spinner", 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* With Ashenmoor Liege on the battlefield, my opponent casts Claustrophobia
|
||||
* on it without losing 4hp.
|
||||
*/
|
||||
@Test
|
||||
public void testAshenmoorLiege() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 3);
|
||||
addCard(Zone.HAND, playerA, "Claustrophobia"); // {1}{U}{U}
|
||||
|
||||
// Other black creatures you control get +1/+1.
|
||||
// Other red creatures you control get +1/+1.
|
||||
// Whenever Ashenmoor Liege becomes the target of a spell or ability an opponent controls, that player loses 4 life.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Ashenmoor Liege", 1); // 4/1
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Claustrophobia", "Ashenmoor Liege");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 16);
|
||||
|
||||
assertPermanentCount(playerA, "Claustrophobia", 1);
|
||||
assertPowerToughness(playerB, "Ashenmoor Liege", 4, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,4 +139,37 @@ public class AnafenzaTest extends CardTestCommanderDuelBase {
|
|||
assertLife(playerB, 40);
|
||||
}
|
||||
|
||||
// Anafenza + Animated permanents
|
||||
@Test
|
||||
public void testAnafenzaExileAnimatedPermanents() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1);
|
||||
|
||||
// {0}: Tap all lands you control. Chimeric Idol becomes a 3/3 Turtle artifact creature until end of turn.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Chimeric Idol");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 3);
|
||||
|
||||
// Whenever Anafenza, the Foremost attacks, put a +1/+1 counter on another target tapped creature you control.
|
||||
// If a creature card would be put into an opponent's graveyard from anywhere, exile it instead.
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Anafenza, the Foremost"); // 4/4
|
||||
|
||||
activateAbility(2, PhaseStep.PRECOMBAT_MAIN, playerB, "{0}: Tap all lands you control");
|
||||
|
||||
attack(2, playerB, "Chimeric Idol");
|
||||
block(2, playerA, "Anafenza, the Foremost", "Chimeric Idol");
|
||||
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 40);
|
||||
assertLife(playerB, 40);
|
||||
|
||||
assertExileCount("Chimeric Idol", 1);
|
||||
assertGraveyardCount(playerB, "Chimeric Idol", 0);
|
||||
assertPermanentCount(playerB, "Chimeric Idol", 0);
|
||||
|
||||
assertTappedCount("Mountain", true, 3);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue