mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
add one more test on sacrifice + dies trigger.
Bug still not reproduced.
This commit is contained in:
parent
d138e33b04
commit
02f19d9896
1 changed files with 41 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
public class SacrificeDiesTriggerTest extends CardTestPlayerBase {
|
||||
|
||||
// Bug: reports of Dies trigger not triggering on sacrifice.
|
||||
// This one test passed 10k times without failure.
|
||||
// This test passed 10k times without failure.
|
||||
@Test
|
||||
public void test_DiesTrigger_ResponseOfSacrifice() {
|
||||
setStrictChooseMode(true);
|
||||
|
|
@ -46,6 +46,7 @@ public class SacrificeDiesTriggerTest extends CardTestPlayerBase {
|
|||
|
||||
// Bug: reports of Dies trigger not triggering on sacrifice.
|
||||
// This pair was specifically mentionned to not trigger the Su-Chi trigger.
|
||||
// This test passed 10k times without failure.
|
||||
@Test
|
||||
public void test_SuChi_SageOfLatNam() {
|
||||
setStrictChooseMode(true);
|
||||
|
|
@ -76,4 +77,43 @@ public class SacrificeDiesTriggerTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Su-Chi", 1);
|
||||
assertTappedCount("Sage of Lat-Nam", true, 1);
|
||||
}
|
||||
|
||||
// Bug: reports of Dies trigger not triggering on sacrifice.
|
||||
// This pair was specifically mentionned to not trigger the Su-Chi trigger.
|
||||
// Trying to change Su-Chi's zcc to see if that changes anything.
|
||||
// This test passed 10k times without failure.
|
||||
@Test
|
||||
public void test_SuChi_SageOfLatNam_BlinkBefore() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
// Su-Chi {4}
|
||||
// Artifact Creature — Construct
|
||||
// When Su-Chi dies, add {C}{C}{C}{C}.
|
||||
// 4/4
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Su-Chi", 1);
|
||||
// Sage of Lat-Nam {1}{U}
|
||||
// Creature — Human Artificer
|
||||
// {T}, Sacrifice an artifact: Draw a card.
|
||||
// 1/2
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Sage of Lat-Nam", 1);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Ephemerate", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Zone.HAND, playerA, "Anvilwrought Raptor"); // Cost {4}
|
||||
|
||||
castSpell(1, PhaseStep.UPKEEP, playerA, "Ephemerate", "Su-Chi");
|
||||
|
||||
setChoice(playerA, "Su-Chi");
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}, Sacrifice");
|
||||
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Anvilwrought Raptor");
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, 1);
|
||||
assertPermanentCount(playerA, "Anvilwrought Raptor", 1);
|
||||
assertGraveyardCount(playerA, "Su-Chi", 1);
|
||||
assertTappedCount("Sage of Lat-Nam", true, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue