mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
extra tests for kiraGreatGlassSpinner
This commit is contained in:
parent
056c0613a2
commit
5c3a1c0c72
1 changed files with 50 additions and 9 deletions
|
@ -10,21 +10,21 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
* Created by IGOUDT on 30-3-2017.
|
* Created by IGOUDT on 30-3-2017.
|
||||||
*/
|
*/
|
||||||
public class KiraGreatGlassSpinnerTest extends CardTestPlayerBase {
|
public class KiraGreatGlassSpinnerTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
private final String kira = "Kira, Great Glass-Spinner";
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void counterFirst() {
|
|
||||||
|
|
||||||
String ugin = "Ugin, the Spirit Dragon";
|
|
||||||
addCard(Zone.BATTLEFIELD, playerA, ugin); // starts with 7 Loyality counters
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Kira, Great Glass-Spinner {1}{U}{U}
|
Kira, Great Glass-Spinner {1}{U}{U}
|
||||||
Legendary Creature - Spirit 2/2
|
Legendary Creature - Spirit 2/2
|
||||||
Flying
|
Flying
|
||||||
Creatures you control have "Whenever this creature becomes the target of a spell or ability for the first time each turn, counter that spell or ability."
|
Creatures you control have "Whenever this creature becomes the target of a spell or ability for the first time each turn, counter that spell or ability."
|
||||||
*/
|
*/
|
||||||
|
private final String kira = "Kira, Great Glass-Spinner";
|
||||||
|
private final String ugin = "Ugin, the Spirit Dragon";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void counterFirst() {
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, ugin); // starts with 7 Loyality counters
|
||||||
|
|
||||||
|
|
||||||
addCard(Zone.BATTLEFIELD, playerA, kira);
|
addCard(Zone.BATTLEFIELD, playerA, kira);
|
||||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+2: {source} deals 3 damage to target creature or player.", kira); // Ugin ability
|
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+2: {source} deals 3 damage to target creature or player.", kira); // Ugin ability
|
||||||
|
|
||||||
|
@ -34,4 +34,45 @@ public class KiraGreatGlassSpinnerTest extends CardTestPlayerBase {
|
||||||
assertPermanentCount(playerA, kira, 1);
|
assertPermanentCount(playerA, kira, 1);
|
||||||
assertCounterCount(playerA, ugin, CounterType.LOYALTY, 9);
|
assertCounterCount(playerA, ugin, CounterType.LOYALTY, 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void counterFirstResolveSecond() {
|
||||||
|
|
||||||
|
String ugin = "Ugin, the Spirit Dragon";
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, ugin); // starts with 7 Loyality counters
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
||||||
|
addCard(Zone.HAND, playerA, "Unsummon", 1);
|
||||||
|
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, kira);
|
||||||
|
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+2: {source} deals 3 damage to target creature or player.", kira); // Ugin ability
|
||||||
|
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Unsummon", kira);
|
||||||
|
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertPermanentCount(playerA, kira, 0);
|
||||||
|
assertCounterCount(playerA, ugin, CounterType.LOYALTY, 9);
|
||||||
|
assertGraveyardCount(playerA, "Unsummon", 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void counterFirstThisTurn_counterFirstOnNextTurn() {
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, ugin); // starts with 7 Loyality counters
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, kira);
|
||||||
|
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+2: {source} deals 3 damage to target creature or player.", kira); // Ugin ability
|
||||||
|
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "+2: {source} deals 3 damage to target creature or player.", kira); // Ugin ability
|
||||||
|
|
||||||
|
|
||||||
|
setStopAt(3, PhaseStep.END_TURN);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertPermanentCount(playerA, kira, 1);
|
||||||
|
assertCounterCount(playerA, ugin, CounterType.LOYALTY, 11);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue