mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* River Kelpie - Fixed that the first ability did not always trigger as intended.
This commit is contained in:
parent
e131caa453
commit
85d7f099bd
9 changed files with 68 additions and 29 deletions
|
|
@ -295,17 +295,21 @@ public class BestowTest extends CardTestPlayerBase {
|
|||
addCard(Zone.HAND, playerA, "Mogis's Warhound");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Mogis's Warhound using bestow", "Silvercoat Lion");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 4);
|
||||
// Chandra's Outrage deals 4 damage to target creature and 2 damage to that creature's controller.
|
||||
addCard(Zone.HAND, playerB, "Chandra's Outrage");
|
||||
|
||||
setStopAt(3, PhaseStep.BEGIN_COMBAT);
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Mogis's Warhound using bestow", "Silvercoat Lion");
|
||||
castSpell(1, PhaseStep.END_TURN, playerB, "Chandra's Outrage", "Silvercoat Lion");
|
||||
setStopAt(3, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 18); // -2 from Chandra's Outrage
|
||||
assertLife(playerB, 18); // -2 from attack of Mogis's Warhound
|
||||
//
|
||||
assertHandCount(playerA, "Mogis's Warhound", 0);
|
||||
|
||||
// because cast with bestow, Boon Satyr may not be tapped
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
assertPowerToughness(playerA, "Silvercoat Lion", 4,4);
|
||||
assertPermanentCount(playerA, "Mogis's Warhound", 1);
|
||||
assertGraveyardCount(playerA, "Silvercoat Lion", 1);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ package org.mage.test.cards.replacement;
|
|||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
|
|
@ -324,6 +323,41 @@ public class ZoneChangeReplacementTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerB, "Legacy Weapon", 1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that a returned creature of Whip of Erebos
|
||||
* got exiled if it is destroyed by a spell
|
||||
*/
|
||||
|
||||
@Test
|
||||
public void testWhipOfErebos() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
// Destroy target nonartifact, nonblack creature. It can't be regenerated.
|
||||
addCard(Zone.HAND, playerA, "Terror");
|
||||
|
||||
// {2}{B}{B}, {T}: Return target creature card from your graveyard to the battlefield.
|
||||
// It gains haste. Exile it at the beginning of the next end step.
|
||||
// If it would leave the battlefield, exile it instead of putting it anywhere else.
|
||||
// Activate this ability only any time you could cast a sorcery.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Whip of Erebos");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Swamp", 4);
|
||||
addCard(Zone.GRAVEYARD, playerB, "Silvercoat Lion");
|
||||
|
||||
activateAbility(2, PhaseStep.PRECOMBAT_MAIN, playerB, "{2}{B}{B},{T}: Return target creature", "Silvercoat Lion");
|
||||
|
||||
castSpell(2, PhaseStep.BEGIN_COMBAT, playerA, "Terror", "Silvercoat Lion");
|
||||
setStopAt(2, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
assertGraveyardCount(playerA, "Terror", 1);
|
||||
assertExileCount("Silvercoat Lion", 1);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue