mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Reverting gideon change (no more CDA). added junit test demonstrating issue #2069
This commit is contained in:
parent
8ded1981fb
commit
0670b24f22
2 changed files with 27 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ public class GideonChampionOfJustice extends CardImpl {
|
||||||
this.addAbility(ability1);
|
this.addAbility(ability1);
|
||||||
|
|
||||||
// 0: Until end of turn, Gideon becomes an indestructible Human Soldier creature with power and toughness each equal to the number of loyalty counters on him. He's still a planeswalker. Prevent all damage that would be dealt to him this turn.
|
// 0: Until end of turn, Gideon becomes an indestructible Human Soldier creature with power and toughness each equal to the number of loyalty counters on him. He's still a planeswalker. Prevent all damage that would be dealt to him this turn.
|
||||||
LoyaltyAbility ability2 = new LoyaltyAbility(new BecomesCreatureSourceEffect(new GideonChampionOfJusticeToken(), "planeswalker", Duration.EndOfTurn, false, true), 0);
|
LoyaltyAbility ability2 = new LoyaltyAbility(new BecomesCreatureSourceEffect(new GideonChampionOfJusticeToken(), "planeswalker", Duration.EndOfTurn, false, false), 0);
|
||||||
ability2.addEffect(new PreventAllDamageToSourceEffect(Duration.EndOfTurn));
|
ability2.addEffect(new PreventAllDamageToSourceEffect(Duration.EndOfTurn));
|
||||||
this.addAbility(ability2);
|
this.addAbility(ability2);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,4 +76,30 @@ public class GideonTest extends CardTestPlayerBase {
|
||||||
assertAbility(playerB, "Silvercoat Lion", IndestructibleAbility.getInstance(), false);
|
assertAbility(playerB, "Silvercoat Lion", IndestructibleAbility.getInstance(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reported bug: When Gideon, Champion of Justice uses his +0 ability to become a creature,
|
||||||
|
* he is immediately sent to the grave instead.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testGideonChampionOfJusticeSecondAbility() {
|
||||||
|
|
||||||
|
/*
|
||||||
|
Gideon, Champion of Justice {2}{W}{W} - 4 Loyalty
|
||||||
|
0: Until end of turn, Gideon, Champion of Justice becomes a Human Soldier creature with power and toughness
|
||||||
|
each equal to the number of loyalty counters on him and gains indestructible. He's still a planeswalker.
|
||||||
|
Prevent all damage that would be dealt to him this turn.
|
||||||
|
*/
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Gideon, Champion of Justice", 1);
|
||||||
|
|
||||||
|
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+0: Until end of turn");
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertGraveyardCount(playerA, "Gideon, Champion of Justice", 0);
|
||||||
|
assertPermanentCount(playerA, "Gideon, Champion of Justice", 1);
|
||||||
|
assertPowerToughness(playerA, "Gideon, Champion of Justice", 4, 4);
|
||||||
|
assertCounterCount(playerA, "Gideon, Champion of Justice", CounterType.LOYALTY, 4);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue