Merge pull request #2978 from drmDev/ut/emeria

Ut/emeria
This commit is contained in:
Derek M 2017-03-17 18:00:28 -04:00 committed by GitHub
commit 6d8c3d906b

View file

@ -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, 0);
assertPermanentCount(playerA, bruna, 1);
}
}