mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
add test for #11385
This commit is contained in:
parent
c14fe72c83
commit
e8b94d566a
1 changed files with 39 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
package org.mage.test.cards.triggers;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author xenohedron
|
||||
*/
|
||||
public class TriggersOnlyOnceTest extends CardTestPlayerBase {
|
||||
|
||||
// Reported bug #11385
|
||||
|
||||
@Test
|
||||
public void testTriggersOnlyOnce() {
|
||||
String doctor = "The Sixth Doctor";
|
||||
// Whenever you cast a historic spell, copy it, except the copy isn't legendary. This ability triggers only once each turn.
|
||||
String clara = "Clara Oswald";
|
||||
// If a triggered ability of a Doctor you control triggers, that ability triggers an additional time.
|
||||
String compass = "Navigator's Compass"; // gain 3 life on ETB
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, doctor);
|
||||
addCard(Zone.BATTLEFIELD, playerA, clara);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Wastes");
|
||||
addCard(Zone.HAND, playerA, compass);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, compass);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20 + 3 + 3);
|
||||
assertPermanentCount(playerA, compass, 2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue