mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Voice of Resurgence - Fixed a bug that the dies trigger did not work correctly if Voice of Resurgence was copied e.g. by a Phantasmal Image.
This commit is contained in:
parent
c347dc18b4
commit
672ac28931
6 changed files with 46 additions and 13 deletions
|
|
@ -576,4 +576,35 @@ public class PhantasmalImageTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerB, "Wurm", 2);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* A Phantasmal Image that was copying a Voice of Resurgence died and left
|
||||
* no token behind.
|
||||
*/
|
||||
@Test
|
||||
public void testVoiceOfResurgence() {
|
||||
// Whenever an opponent casts a spell during your turn or when Voice of Resurgence dies, put a green and white Elemental creature token onto the battlefield with "This creature's power and toughness are each equal to the number of creatures you control."
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Voice of Resurgence");
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
addCard(Zone.HAND, playerA, "Phantasmal Image");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Phantasmal Image"); // not targeted
|
||||
setChoice(playerB, "Voice of Resurgence");
|
||||
|
||||
attack(2, playerB, "Voice of Resurgence");
|
||||
block(2, playerA, "Voice of Resurgence", "Voice of Resurgence");
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 20);
|
||||
assertLife(playerA, 20);
|
||||
|
||||
assertGraveyardCount(playerA, "Phantasmal Image", 1);
|
||||
assertGraveyardCount(playerB, "Voice of Resurgence", 1);
|
||||
|
||||
assertPermanentCount(playerB, "Elemental", 1);
|
||||
assertPermanentCount(playerA, "Elemental", 1);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ package org.mage.test.cards.triggers.dies;
|
|||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.Filter;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
|
|
@ -72,8 +73,8 @@ public class VoiceOfResurgenceTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Treachery", 1);
|
||||
assertGraveyardCount(playerB, "Voice of Resurgence", 1);
|
||||
|
||||
assertPermanentCount(playerA, "Elemental", 1);
|
||||
assertPowerToughness(playerA, "Elemental", 2, 2);
|
||||
assertPermanentCount(playerA, "Elemental", 2); // one from the Lightning Bolt and one from the Voice of Resurgence dying
|
||||
assertPowerToughness(playerA, "Elemental", 3, 3, Filter.ComparisonScope.All);
|
||||
assertTappedCount("Island", true, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue