mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Merge pull request #1721 from drmDev/master
Additional Prized amalgam test
This commit is contained in:
commit
3d8d48fcfe
1 changed files with 21 additions and 0 deletions
|
@ -79,4 +79,25 @@ public class PrizedAmalgamTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerB, "Prized Amalgam", 0); // should not recur
|
||||
assertGraveyardCount(playerB, "Prized Amalgam", 1); // stays in grave
|
||||
}
|
||||
|
||||
/*
|
||||
* Test opponent returning a card from your graveyard to battlefield.
|
||||
*/
|
||||
@Test
|
||||
public void testOpponentReturnsCreatureFromYourGrave() {
|
||||
|
||||
addCard(Zone.HAND, playerA, "Necromantic Summons", 1); // Put target creature card from a graveyard onto the battlefield under your control.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 5);
|
||||
addCard(Zone.GRAVEYARD, playerB, "Merfolk Looter", 1); // {U} 1/1
|
||||
addCard(Zone.GRAVEYARD, playerB, "Prized Amalgam", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Necromantic Summons");
|
||||
addTarget(playerA, "Merfolk Looter");
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Merfolk Looter", 1);
|
||||
assertPermanentCount(playerB, "Prized Amalgam", 0); // should not recur
|
||||
assertGraveyardCount(playerB, "Prized Amalgam", 1); // stays in grave
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue