mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
Fix effects where the source's controller sacrifices it (#12583)
* Fix effects where the source's controller sacrifices it. Added test. Fixes #12582 * Update Evoke rules text
This commit is contained in:
parent
3eb7ffa4cd
commit
96b08ee6bf
4 changed files with 49 additions and 8 deletions
|
|
@ -41,8 +41,16 @@ public class EvokeTest extends CardTestPlayerBase {
|
|||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shriekmaw");
|
||||
setChoice(playerA, true);
|
||||
// addTarget(playerA, "Silvercoat Lion"); Autochosen, only target
|
||||
setChoice(playerA, "When {this} enters the battlefield, destroy"); //Stack triggers
|
||||
addTarget(playerA, "Silvercoat Lion"); // Destroy
|
||||
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Exhume");
|
||||
addTarget(playerA, "Shriekmaw");
|
||||
addTarget(playerB, "Silvercoat Lion"); //Return
|
||||
|
||||
addTarget(playerA, "Silvercoat Lion"); // Destroy
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
|
|
@ -55,5 +63,31 @@ public class EvokeTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerA, "Shriekmaw", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testControllerSacrifices() {
|
||||
|
||||
}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 7);
|
||||
addCard(Zone.HAND, playerA, "Wrong Turn");
|
||||
addCard(Zone.HAND, playerA, "Mulldrifter");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Proper Burial");
|
||||
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Mulldrifter");
|
||||
setChoice(playerA, true);
|
||||
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, 1);
|
||||
setChoice(playerA, "When {this} enters the battlefield, draw"); //Stack triggers
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Wrong Turn");
|
||||
addTarget(playerA, playerB);
|
||||
addTarget(playerA, "Mulldrifter");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Mulldrifter", 1);
|
||||
assertGraveyardCount(playerA, "Wrong Turn", 1);
|
||||
assertLife(playerB, 22);
|
||||
assertHandCount(playerA, 2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue