mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
initial test setup
This commit is contained in:
parent
6cb77bfb8f
commit
35b8e55f0f
1 changed files with 54 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
|||
package org.mage.test.cards.single.bfz;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Created by escplan9
|
||||
*/
|
||||
public class EmeriaShepherdTest extends CardTestPlayerBase {
|
||||
|
||||
/*
|
||||
* Reported bug: Emeria Shepherd can't bounce Bruna to the table when a plains enters the battlefield.
|
||||
*/
|
||||
@Test
|
||||
public void emeriaInteractionWithBruna()
|
||||
{
|
||||
|
||||
/*
|
||||
*
|
||||
* Emeria Shepherd (5)(W)(W)
|
||||
Flying 4/4 Creature Angel
|
||||
Landfall — Whenever a land enters the battlefield under your control, you may return target nonland permanent card from your graveyard to your hand.
|
||||
If that land is a Plains, you may return that nonland permanent card to the battlefield instead.
|
||||
*/
|
||||
String emeria = "Emeria Shepherd";
|
||||
|
||||
/*
|
||||
* Bruna, The Fading Light (5)(W)(W)
|
||||
* Legendary Creature - Angel Horror 5/7
|
||||
When you cast Bruna, the Fading Light, you may return target Angel or Human creature card from your graveyard to the battlefield.
|
||||
Flying, vigilance
|
||||
(Melds with Gisela, the Broken Blade.)
|
||||
*/
|
||||
String bruna = "Bruna, The Fading Light";
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, emeria);
|
||||
addCard(Zone.HAND, playerA, "Plains");
|
||||
addCard(Zone.GRAVEYARD, playerA, bruna);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 7);
|
||||
|
||||
playLand(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plains");
|
||||
setChoice(playerA, "Yes"); // opt to use Emeria's triggered ability
|
||||
addTarget(playerA, bruna); // target Bruna in grave
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, "Plains", 0);
|
||||
assertGraveyardCount(playerA, bruna, 0);
|
||||
assertHandCount(playerA, bruna, 1);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue