[IKO] fixed issue with Zirda, the Dawnwaker static ability not working when reanimated

This commit is contained in:
Evan Kranzler 2021-03-14 18:49:32 -04:00
parent d4792e3665
commit 5e2738aab9
2 changed files with 30 additions and 1 deletions

View file

@ -86,7 +86,7 @@ enum ZirdaTheDawnwakerCompanionCondition implements CompanionCondition {
class ZirdaTheDawnwakerEffect extends CostModificationEffectImpl { class ZirdaTheDawnwakerEffect extends CostModificationEffectImpl {
ZirdaTheDawnwakerEffect() { ZirdaTheDawnwakerEffect() {
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST); super(Duration.WhileOnBattlefield, Outcome.Benefit, CostModificationType.REDUCE_COST);
staticText = "Abilities you activate that aren't mana abilities cost {2} less to activate. " staticText = "Abilities you activate that aren't mana abilities cost {2} less to activate. "
+ "This effect can't reduce the mana in that cost to less than one mana"; + "This effect can't reduce the mana in that cost to less than one mana";
} }

View file

@ -72,4 +72,33 @@ public class ZirdaTheDawnwakerTest extends CardTestPlayerBase {
assertGraveyardCount(playerB, 2); assertGraveyardCount(playerB, 2);
assertGraveyardCount(playerB, lion, 0); assertGraveyardCount(playerB, lion, 0);
} }
@Test
public void testWithGeth2() {
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 5);
addCard(Zone.BATTLEFIELD, playerA, geth);
addCard(Zone.GRAVEYARD, playerB, zirda);
addCard(Zone.GRAVEYARD, playerB, lion);
setChoice(playerA, "X=3");
addTarget(playerA, zirda);
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{X}{B}");
setChoice(playerA, "X=2");
addTarget(playerA, lion);
activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "{X}{B}");
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, zirda, 1);
assertPermanentCount(playerA, lion, 1);
assertTapped(zirda, true);
assertTapped(lion, true);
assertGraveyardCount(playerB, 2 + 3);
assertGraveyardCount(playerB, zirda, 0);
assertGraveyardCount(playerB, lion, 0);
}
} }