Skip to content

Commit 9bfbc7f

Browse files
authored
fix Ayara, Widow of the Realm (#14655)
Was always failing due to not actually moving the card from graveyard to battlefield. Fixes #14654 Co-authored-by: matoro <matoro@users.noreply.github.com>
1 parent 71518af commit 9bfbc7f

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Mage.Sets/src/mage/cards/a/AyaraWidowOfTheRealm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public boolean apply(Game game, Ability source) {
116116
if (player == null || card == null) {
117117
return false;
118118
}
119+
player.moveCards(card, Zone.BATTLEFIELD, source, game);
119120
Permanent permanent = CardUtil.getPermanentFromCardPutToBattlefield(card, game);
120121
if (permanent == null) {
121122
return false;
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

Comments
 (0)