mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[OGW] Fixed Surge to work with triggered abilities of permanents.
This commit is contained in:
parent
d4692d6371
commit
af5ff0f407
5 changed files with 60 additions and 11 deletions
|
|
@ -88,4 +88,26 @@ public class SurgeTest extends CardTestPlayerBase {
|
|||
assertLife(playerB, 17);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTyrantOfValakut() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 6);
|
||||
// Surge {3}{R}{R} (You may cast this spell for its surge cost if you or a teammate has cast another spell this turn)
|
||||
// Flying
|
||||
// When Tyrant of Valakut enters the battlefield, if its surge cost was paid, it deals 3 damage to target creature or player.
|
||||
addCard(Zone.HAND, playerA, "Tyrant of Valakut"); // {5}{R}{R}
|
||||
addCard(Zone.HAND, playerA, "Lightning Bolt");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tyrant of Valakut");
|
||||
addTarget(playerA, playerB);
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Lightning Bolt", 1);
|
||||
assertPermanentCount(playerA, "Tyrant of Valakut", 1);
|
||||
|
||||
assertLife(playerB, 14);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,8 +40,9 @@ public class GeistOfSaintTraftTest extends CardTestPlayerBase {
|
|||
/**
|
||||
* Geist of Saint Traft - Legendary Spirit Cleric 2/2, {1}{W}{U}
|
||||
*
|
||||
* Hexproof
|
||||
* Whenever Geist of Saint Traft attacks, put a 4/4 white Angel creature token with flying onto the battlefield tapped and attacking. Exile that token at end of combat.
|
||||
* Hexproof Whenever Geist of Saint Traft attacks, put a 4/4 white Angel
|
||||
* creature token with flying onto the battlefield tapped and attacking.
|
||||
* Exile that token at end of combat.
|
||||
*
|
||||
*/
|
||||
@Test
|
||||
|
|
@ -51,7 +52,7 @@ public class GeistOfSaintTraftTest extends CardTestPlayerBase {
|
|||
|
||||
attack(2, playerB, "Geist of Saint Traft");
|
||||
|
||||
setStopAt(2, PhaseStep.END_COMBAT);
|
||||
setStopAt(2, PhaseStep.COMBAT_DAMAGE);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Geist of Saint Traft", 1);
|
||||
|
|
@ -63,7 +64,6 @@ public class GeistOfSaintTraftTest extends CardTestPlayerBase {
|
|||
assertLife(playerB, 20);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testTokenwillBeExiled() {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue