mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Merge pull request #5209 from tamaroth/master
Fix Tuvasa the Sunlit triggered ability.
This commit is contained in:
commit
1322bd3c23
2 changed files with 73 additions and 10 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