mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Only fire one Targetted event per target
This specifically addresses changing the target of a spell or ability on the stack. Fixes https://github.com/magefree/mage/issues/6158
This commit is contained in:
parent
a8d8f4e621
commit
b6af571779
4 changed files with 22 additions and 50 deletions
|
|
@ -78,7 +78,7 @@ public class CopySpellTest extends CardTestPlayerBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void BonecrusherGiantChangeTargetsTo() {
|
||||
public void BonecrusherGiantChangeTargets() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Savannah Lions");
|
||||
|
|
@ -100,45 +100,6 @@ public class CopySpellTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 18);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void BonecrusherGiantChangeTargetsFrom() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Savannah Lions");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains");
|
||||
addCard(Zone.HAND, playerA, "Barkshell Blessing");
|
||||
|
||||
castSpell(1, PhaseStep.UPKEEP, playerA, "Barkshell Blessing");
|
||||
setChoice(playerA, "Yes");
|
||||
setChoice(playerA, "Yes");
|
||||
addTarget(playerA, "Bonecrusher Giant");
|
||||
addTarget(playerA, "Grizzly Bears");
|
||||
|
||||
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Bonecrusher Giant", 6, 5);
|
||||
assertPowerToughness(playerA, "Grizzly Bears", 4, 4);
|
||||
assertPowerToughness(playerA, "Savannah Lions", 2, 1);
|
||||
assertLife(playerA, 18);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void BonecrusherGiantControl() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains");
|
||||
addCard(Zone.HAND, playerA, "Barkshell Blessing");
|
||||
|
||||
castSpell(1, PhaseStep.UPKEEP, playerA, "Barkshell Blessing");
|
||||
addTarget(playerA, "Bonecrusher Giant");
|
||||
|
||||
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Bonecrusher Giant", 6, 5);
|
||||
assertLife(playerA, 18);
|
||||
}
|
||||
|
||||
/*
|
||||
* Reported bug: "Silverfur Partisan and fellow wolves did not trigger off
|
||||
* of copies of Strength of Arms made by Zada, Hedron Grinder. Not sure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue