mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Test for Exiled and fix.
This commit is contained in:
parent
194ddb06f5
commit
fb8f4c3c67
2 changed files with 22 additions and 0 deletions
|
|
@ -56,4 +56,25 @@ public class OblivionRingTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerA, "Oblivion Ring", 0);
|
||||
assertPermanentCount(playerB, "Craw Wurm", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWithOblivionRingExile() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 3);
|
||||
addCard(Constants.Zone.HAND, playerA, "Oblivion Ring");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Plains", 3);
|
||||
addCard(Constants.Zone.HAND, playerB, "Revoke Existence");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Oblivion Ring");
|
||||
castSpell(2, Constants.PhaseStep.PRECOMBAT_MAIN, playerB, "Revoke Existence", "Oblivion Ring");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
assertPermanentCount(playerA, "Oblivion Ring", 0);
|
||||
assertPermanentCount(playerB, "Craw Wurm", 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue