mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
Satyr Firedancer triggers for each opponent
Satyr Firedancer should trigger multiple times when single Instant or Sorcery deals damage to multiple opponents, once for each opponent. Cards like Price of Progress currently triggered first time for first opponent in turn order, but not for others. This commit changes how the ability handles multiple damage by single source: single spell can trigger multiple times of a single stack object, because it can represent multiple instances of damage.
This commit is contained in:
parent
0fb80bfc15
commit
64b979b0d7
2 changed files with 82 additions and 27 deletions
|
|
@ -3,6 +3,7 @@ package org.mage.test.cards.abilities.oneshot.damage;
|
|||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.GameException;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
|
|
@ -75,4 +76,63 @@ public class SatyrFiredancerTest extends CardTestPlayerBase {
|
|||
assertLife(playerB, 19);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPriceOfProgressMultiplayer() throws GameException {
|
||||
playerC = createPlayer(currentGame, playerC, "PlayerC");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Satyr Firedancer", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Zone.HAND, playerA, "Price of Progress", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Taiga", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Swab Goblin", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerC, "Savannah", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerC, "Grizzly Bears", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Price of Progress");
|
||||
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);
|
||||
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Swab Goblin", 0);
|
||||
assertGraveyardCount(playerB, "Swab Goblin", 1);
|
||||
|
||||
assertPermanentCount(playerC, "Grizzly Bears", 0);
|
||||
assertGraveyardCount(playerC, "Grizzly Bears", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultipleInstanceOfDamage() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Satyr Firedancer", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
|
||||
addCard(Zone.HAND, playerA, "Fiery Confluence", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Taiga", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Grizzly Bears", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Bear Cub", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Forest Bear", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Runeclaw Bear", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Fiery Confluence");
|
||||
setModeChoice(playerA, "2");
|
||||
setModeChoice(playerA, "2");
|
||||
setModeChoice(playerA, "2");
|
||||
|
||||
addTarget(playerA, "Grizzly Bears");
|
||||
addTarget(playerA, "Bear Cub");
|
||||
addTarget(playerA, "Forest Bear");
|
||||
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);
|
||||
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Grizzly Bears", 0);
|
||||
assertPermanentCount(playerB, "Bear Cub", 0);
|
||||
assertPermanentCount(playerB, "Forest Bear", 0);
|
||||
assertPermanentCount(playerB, "Runeclaw Bear", 1);
|
||||
|
||||
assertGraveyardCount(playerB, "Grizzly Bears", 1);
|
||||
assertGraveyardCount(playerB, "Bear Cub", 1);
|
||||
assertGraveyardCount(playerB, "Forest Bear", 1);
|
||||
assertGraveyardCount(playerB, "Runeclaw Bear", 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue