mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* It That Betrays - Fixed that target handling of second triggered ability did not work correct (fixes #4568).
This commit is contained in:
parent
dbfb708e44
commit
8b8b3752e8
1 changed files with 47 additions and 0 deletions
|
@ -31,5 +31,52 @@ public class AnnihilatorTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerA, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* I was attacked with an It that Betrays while i had an Academy Rector and
|
||||
* with the annihilator trigger on the stack i cast Cauldron Haze targeting
|
||||
* academy rector then sacrificed her to the annihilator trigger and chose
|
||||
* not to exile her. My persist resolved before the second ability of it
|
||||
* that betrays because i was not the active player, the game log shows:
|
||||
*
|
||||
* 9:18 AM: Ability triggers: Academy Rector [e15] - Persist (When this
|
||||
* creature dies, if it had no -1/-1 counters on it, return it to the
|
||||
* battlefield under its owner's control with a -1/-1 counter on it.)
|
||||
*
|
||||
* 9:19 AM: EllNubNub puts Academy Rector [e15] from graveyard onto the
|
||||
* Battlefield
|
||||
*
|
||||
* 9:20 AM: hellmo puts Academy Rector [e15] from battlefield onto the
|
||||
* Battlefield
|
||||
*
|
||||
* The It that Betrays trigger should have fissled, instead it stole her
|
||||
* from my battlefield and removed the persist counter.
|
||||
*/
|
||||
@Test
|
||||
public void testCardItThatBetrays() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
|
||||
|
||||
// Choose any number of target creatures. Each of those creatures gains persist until end of turn.
|
||||
// Persist (When this creature dies, if it had no -1/-1 counters on it, return it to the battlefield under its owner's control with a -1/-1 counter on it.)
|
||||
addCard(Zone.HAND, playerA, "Cauldron Haze", 1); // Instant {1}{W/B}
|
||||
|
||||
// When Academy Rector dies, you may exile it. If you do, search your library for an enchantment card, put that card onto the battlefield, then shuffle your library.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Academy Rector", 1);
|
||||
|
||||
// Annihilator 2 (Whenever this creature attacks, defending player sacrifices two permanents.)
|
||||
// Whenever an opponent sacrifices a nontoken permanent, put that card onto the battlefield under your control.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "It That Betrays");
|
||||
|
||||
attack(2, playerB, "It That Betrays");
|
||||
setChoice(playerA, "Academy Rector"); // Annihilator
|
||||
setChoice(playerA, "Plains"); // Annihilator
|
||||
castSpell(2, PhaseStep.DECLARE_ATTACKERS, playerA, "Cauldron Haze", "Academy Rector", "Annihilator");
|
||||
setChoice(playerA, "No"); // Academy Rector No Exile
|
||||
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Cauldron Haze", 1);
|
||||
assertPermanentCount(playerB, "Academy Rector", 0);
|
||||
assertPowerToughness(playerA, "Academy Rector", 0, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue