From 3d19637e8565d75291adc8c4e9339e8a939d774d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 4 Sep 2016 17:41:33 +0200 Subject: [PATCH] Added test for Oracle of Dust activated ability. --- .../activated/PutToGraveyardTest.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/activated/PutToGraveyardTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/activated/PutToGraveyardTest.java index dbb7b582684..1c3ab43a882 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/activated/PutToGraveyardTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/activated/PutToGraveyardTest.java @@ -72,4 +72,32 @@ public class PutToGraveyardTest extends CardTestPlayerBase { } + /** + * Oracle of Dust does not seem to actually move cards from exile into the + * opponent's graveyard, even though every other part of the ability works + * just fine. + */ + @Test + public void testExileToGraveyard2() { + addCard(Zone.BATTLEFIELD, playerA, "Plains", 3); + // Devoid + // {2}, Put a card an opponent owns from exile into that player's graveyard: Draw a card, then discard a card. + addCard(Zone.BATTLEFIELD, playerA, "Oracle of Dust", 1); // {4}{U} + + addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion"); + // Exile target creature. Its controller gains life equal to its power. + addCard(Zone.HAND, playerA, "Swords to Plowshares"); + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Swords to Plowshares", "Silvercoat Lion"); + + activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "{2}"); + + setStopAt(1, PhaseStep.END_TURN); + execute(); + + assertGraveyardCount(playerA, "Swords to Plowshares", 1); + assertGraveyardCount(playerB, "Silvercoat Lion", 1); + assertGraveyardCount(playerA, 2); + + } }