mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Gather Specimens - Fixed that it did not work for token creatures the opponent brought onto the battlefield.
This commit is contained in:
parent
cb014226c4
commit
6514e30b59
5 changed files with 51 additions and 19 deletions
|
|
@ -41,6 +41,27 @@ public class GatherSpecimensTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerB, "Memnite", 0);
|
||||
|
||||
}
|
||||
@Test
|
||||
public void testTokenCreatedFromSpellEffect() {
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 6);
|
||||
addCard(Zone.HAND, playerA, "Gather Specimens", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Plains", 3);
|
||||
addCard(Zone.HAND, playerB, "Spectral Procession", 1);
|
||||
|
||||
castSpell(2, PhaseStep.UPKEEP, playerA, "Gather Specimens");
|
||||
|
||||
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Spectral Procession");
|
||||
|
||||
setStopAt(2, PhaseStep.BEGIN_COMBAT);
|
||||
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Spirit", 3);
|
||||
assertPermanentCount(playerB, "Spirit", 0);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFromGraveyardEffect() {
|
||||
|
|
@ -83,6 +104,7 @@ public class GatherSpecimensTest extends CardTestPlayerBase {
|
|||
castSpell(1, PhaseStep.UPKEEP, playerA, "Gather Specimens");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Oblivion Ring");
|
||||
addTarget(playerA, "Memnite");
|
||||
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Disenchant", "Oblivion Ring");
|
||||
|
||||
|
|
@ -94,4 +116,6 @@ public class GatherSpecimensTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerB, "Memnite", 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue