Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/cards/a/AyaraWidowOfTheRealm.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public boolean apply(Game game, Ability source) {
if (player == null || card == null) {
return false;
}
player.moveCards(card, Zone.BATTLEFIELD, source, game);
Permanent permanent = CardUtil.getPermanentFromCardPutToBattlefield(card, game);
if (permanent == null) {
return false;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package org.mage.test.cards.single.mom;

import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;

public class AyaraWidowOfTheRealmTest extends CardTestPlayerBase {

@Test
public void testBackside() {
addCard(Zone.BATTLEFIELD, playerA, "Ayara, Widow of the Realm");
addCard(Zone.GRAVEYARD, playerA, "Noxious Gearhulk");
addCard(Zone.BATTLEFIELD, playerB, "Balduvian Bears");
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 6);

activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{5}");
setChoice(playerA, false);
addTarget(playerA, "Noxious Gearhulk");
setChoice(playerA, true);
addTarget(playerA, "Balduvian Bears");
attack(1, playerA, "Noxious Gearhulk", playerB);

setStrictChooseMode(true);
setStopAt(2, PhaseStep.PRECOMBAT_MAIN);
execute();

assertPermanentCount(playerA, "Ayara, Furnace Queen", 1);
assertExileCount(playerA, "Noxious Gearhulk", 1);
assertGraveyardCount(playerB, "Balduvian Bears", 1);
assertLife(playerA, 22);
assertLife(playerB, 15);
}

}
Loading