forked from External/mage
Add a test for a triggered ability of Tuvasa the Sunlit
The test makes sure that a triggered ability of Tuvasa is triggered only once and draws only one card when more than one enchantment spells are cast by the controller of Tuvasa during a single turn.
This commit is contained in:
parent
d8f9c4b329
commit
566caedd61
1 changed files with 40 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
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 tamaroth
|
||||
*/
|
||||
public class TuvasaTheSunlitTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Playing more than one enchantment spell in a single turn does not draw more than 1 additional card.
|
||||
*/
|
||||
@Test
|
||||
public void testWithStriveSpell() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1);
|
||||
|
||||
// Whenever you play your first enchantment spell of the turn, draw a card.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Tuvasa the Sunlit", 1);
|
||||
|
||||
// Two enchantments to play
|
||||
addCard(Zone.HAND, playerA, "Burgeoning", 1);
|
||||
addCard(Zone.HAND, playerA, "Ajani's Welcome", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Burgeoning");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Ajani's Welcome");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, 1);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue