Fix planeswalker loyalty counters.

They should be added like normal counters, firing events that can be
intercepted by cards like doubling season.
This commit is contained in:
Nathaniel Brandes 2017-03-08 23:57:11 -08:00
parent 2ecb415b4d
commit 52fa369024
2 changed files with 21 additions and 2 deletions

View file

@ -192,4 +192,22 @@ public class DoublingSeasonTest extends CardTestPlayerBase {
assertLife(playerA, 20);
}
@Test
public void testDoublePlaneswalkerLoyalty() {
addCard(Zone.BATTLEFIELD, playerA, "Tibalt, the Fiend-Blooded");
addCard(Zone.BATTLEFIELD, playerA, "Doubling Season");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA,"+1: Draw a card, then discard a card at random.");
setStopAt(1, PhaseStep.END_TURN);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertCounterCount("Tibalt, the Fiend-Blooded", CounterType.LOYALTY, 4);
}
}