mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Merge pull request #2922 from drmDev/ut/grand-arb
unit tests for Grand Arbiter Augustin IV
This commit is contained in:
commit
59d0262943
1 changed files with 41 additions and 1 deletions
|
@ -114,7 +114,7 @@ public class CostModificationTest extends CardTestPlayerBase {
|
|||
}
|
||||
|
||||
/*
|
||||
I had Goblin Electromancer, but somehow Pyretic Ritual wasn't cheaper howeverDesperate Ritual was.
|
||||
I had Goblin Electromancer, but somehow Pyretic Ritual wasn't cheaper however Desperate Ritual was.
|
||||
*/
|
||||
@Test
|
||||
public void testCostReductionForPyreticRitual() {
|
||||
|
@ -140,4 +140,44 @@ public class CostModificationTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Fated Conflagration", 1);
|
||||
assertGraveyardCount(playerB, "Carnivorous Moss-Beast", 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Reported bug: Grand Arbiter Augustin IV makes moth spells you cast and your opponent cast {1} more. Should only affect opponent's spells costs.
|
||||
*/
|
||||
@Test
|
||||
public void testArbiterIncreasingCostBothPlayers() {
|
||||
|
||||
String gArbiter = "Grand Arbiter Augustin IV";
|
||||
String divination = "Divination";
|
||||
String doomBlade = "Doom Blade";
|
||||
|
||||
/*
|
||||
Grand Arbiter Augustin IV {2}{W}{U}
|
||||
2/3 Legendary Creature - Human Advisor
|
||||
White spells you cast cost 1 less to cast.
|
||||
Blue spells you cast cost 1 less to cast.
|
||||
Spells your opponents cast cost 1 more to cast.
|
||||
*/
|
||||
addCard(Zone.BATTLEFIELD, playerA, gArbiter);
|
||||
addCard(Zone.HAND, playerA, divination); // {2}{U} Sorcery: draw two cards
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
|
||||
addCard(Zone.HAND, playerB, doomBlade);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Swamp", 2); // {1}{B} Instant: destroy target non-black creature
|
||||
|
||||
// Divination should only cost {1}{U} now with the cost reduction in place for your blue spells.
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, divination);
|
||||
|
||||
// Doom Blade cast by the opponent should cost {2}{B} now with the cost increase in effect for opponent spells.
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, doomBlade, gArbiter);
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, divination, 1);
|
||||
assertHandCount(playerA, 2);
|
||||
assertTappedCount("Island", true, 2);
|
||||
assertPermanentCount(playerA, gArbiter, 1);
|
||||
assertHandCount(playerB, doomBlade, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue