mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 17:29:58 -08:00
* Some minor fixed and log changes.
This commit is contained in:
parent
9a21b55d39
commit
60cc3a7622
9 changed files with 90 additions and 46 deletions
|
|
@ -108,4 +108,37 @@ public class EndTurnEffectTest extends CardTestPlayerBase {
|
|||
assertHandCount(playerB, 0);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test to remove a Aftermath card from spell
|
||||
*/
|
||||
@Test
|
||||
public void testSpellAftermath() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
// Insult Sorcery {2}{R}
|
||||
// Damage can't be prevented this turn. If a source you control would deal damage this turn, it deals double that damage instead.
|
||||
// Injury Sorcery {2}{R}
|
||||
// Aftermath (Cast this spell only from your graveyard. Then exile it.)
|
||||
// Injury deals 2 damage to target creature and 2 damage to target player.
|
||||
addCard(Zone.GRAVEYARD, playerA, "Insult // Injury");
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 3);
|
||||
// End the turn.
|
||||
// At the beginning of your next end step, you lose the game.
|
||||
addCard(Zone.HAND, playerB, "Glorious End"); //Instant {2}{R}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Injury", "Silvercoat Lion");
|
||||
addTarget(playerA, playerB);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Glorious End", NO_TARGET, "Injury");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertExileCount(playerA, "Insult // Injury", 1);
|
||||
assertGraveyardCount(playerB, "Glorious End", 0);
|
||||
assertHandCount(playerA, 0);
|
||||
assertHandCount(playerB, 0);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue