|
| 1 | +package org.mage.test.cards.single.mom; |
| 2 | + |
| 3 | +import mage.constants.PhaseStep; |
| 4 | +import mage.constants.Zone; |
| 5 | +import org.junit.Test; |
| 6 | +import org.mage.test.serverside.base.CardTestPlayerBase; |
| 7 | + |
| 8 | +public class AyaraWidowOfTheRealmTest extends CardTestPlayerBase { |
| 9 | + |
| 10 | + @Test |
| 11 | + public void testBackside() { |
| 12 | + addCard(Zone.BATTLEFIELD, playerA, "Ayara, Widow of the Realm"); |
| 13 | + addCard(Zone.GRAVEYARD, playerA, "Noxious Gearhulk"); |
| 14 | + addCard(Zone.BATTLEFIELD, playerB, "Balduvian Bears"); |
| 15 | + addCard(Zone.BATTLEFIELD, playerA, "Mountain", 6); |
| 16 | + |
| 17 | + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{5}"); |
| 18 | + setChoice(playerA, false); |
| 19 | + addTarget(playerA, "Noxious Gearhulk"); |
| 20 | + setChoice(playerA, true); |
| 21 | + addTarget(playerA, "Balduvian Bears"); |
| 22 | + attack(1, playerA, "Noxious Gearhulk", playerB); |
| 23 | + |
| 24 | + setStrictChooseMode(true); |
| 25 | + setStopAt(2, PhaseStep.PRECOMBAT_MAIN); |
| 26 | + execute(); |
| 27 | + |
| 28 | + assertPermanentCount(playerA, "Ayara, Furnace Queen", 1); |
| 29 | + assertExileCount(playerA, "Noxious Gearhulk", 1); |
| 30 | + assertGraveyardCount(playerB, "Balduvian Bears", 1); |
| 31 | + assertLife(playerA, 22); |
| 32 | + assertLife(playerB, 15); |
| 33 | + } |
| 34 | + |
| 35 | +} |
0 commit comments