mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
[IKO] fixed issue with Zirda, the Dawnwaker static ability not working when reanimated
This commit is contained in:
parent
d4792e3665
commit
5e2738aab9
2 changed files with 30 additions and 1 deletions
|
@ -86,7 +86,7 @@ enum ZirdaTheDawnwakerCompanionCondition implements CompanionCondition {
|
|||
class ZirdaTheDawnwakerEffect extends CostModificationEffectImpl {
|
||||
|
||||
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. "
|
||||
+ "This effect can't reduce the mana in that cost to less than one mana";
|
||||
}
|
||||
|
|
|
@ -72,4 +72,33 @@ public class ZirdaTheDawnwakerTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerB, 2);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue