* Gideon, Champion of Justice - Fixed that the P/T did not change if loyality counters were added after using the 0 ability.

This commit is contained in:
LevelX2 2016-07-13 17:04:52 +02:00
parent ace81d1c74
commit fc1a1523c5
4 changed files with 94 additions and 8 deletions

View file

@ -82,7 +82,7 @@ public class GideonTest extends CardTestPlayerBase {
*/
@Test
public void testGideonChampionOfJusticeSecondAbility() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
/*
Gideon, Champion of Justice {2}{W}{W} - 4 Loyalty
+1: Put a loyalty counter on Gideon, Champion of Justice for each creature target opponent controls.
@ -94,16 +94,24 @@ public class GideonTest extends CardTestPlayerBase {
-15: Exile all other permanents.
*/
addCard(Zone.BATTLEFIELD, playerA, "Gideon, Champion of Justice", 1);
addCard(Zone.HAND, playerA, "Gideon, Champion of Justice", 1);
addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion", 2);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Gideon, Champion of Justice");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+0: Until end of turn");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "+1: Put a loyalty counter on", playerB);
activateAbility(5, PhaseStep.PRECOMBAT_MAIN, playerA, "+0: Until end of turn");
setStopAt(5, 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);
assertCounterCount(playerA, "Gideon, Champion of Justice", CounterType.LOYALTY, 7);
assertPowerToughness(playerA, "Gideon, Champion of Justice", 7, 7);
}