mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Properly fix ReturnToBattlefieldUnderYourControl.
All tests now passing. I broke out It That Betrays into it's own class, as it doesn't actually care about zone when returning the permanent to the battlefield, unlike most other abilities of that type, which target.
This commit is contained in:
parent
96d9fe1a52
commit
f9f6b078ab
3 changed files with 79 additions and 5 deletions
|
|
@ -67,4 +67,25 @@ public class ItThatBetraysTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Flooded Strand", 1);
|
||||
}
|
||||
|
||||
//It That Betrays doesn't care what zone the card is when the effect resolves. It will return the card regardless.
|
||||
@Test
|
||||
public void testExileItThatBetraysEffect() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Flooded Strand", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Rest in Peace", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "It That Betrays");
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}, Pay 1 life, Sacrifice");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 19);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
// Player B now controls a Flooded Strand, even though it went to exile
|
||||
assertPermanentCount(playerB, "Flooded Strand", 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue