mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
* Leyline of Anticipation - Fixed that it only worked for creatures instead of all nonland permanents.
This commit is contained in:
parent
a8bf35e39a
commit
484a4fe0f6
4 changed files with 80 additions and 14 deletions
|
|
@ -0,0 +1,67 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package org.mage.test.cards.asthough;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class LeylineOfAnticipationTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testCastAsThoughHasFlashDuringCombat() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains",2);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Leyline of Anticipation");
|
||||
addCard(Zone.HAND, playerA, "Silvercoat Lion");
|
||||
setChoice(playerA, "Yes");
|
||||
castSpell(2, PhaseStep.DRAW, playerA, "Silvercoat Lion");
|
||||
|
||||
setStopAt(2, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
assertPermanentCount(playerA, "Leyline of Anticipation", 1);
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests playing card with flash from graveyard with Yawgmoth's Agenda in play works also
|
||||
*/
|
||||
@Test
|
||||
public void testNoCastPossibleOnOpponentsTurn() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains",2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Yawgmoth's Agenda",1);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Leyline of Anticipation");
|
||||
setChoice(playerA, "Yes");
|
||||
|
||||
addCard(Zone.GRAVEYARD, playerA, "Silvercoat Lion");
|
||||
|
||||
castSpell(2, PhaseStep.DRAW, playerA, "Silvercoat Lion");
|
||||
|
||||
setStopAt(2, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
assertPermanentCount(playerA, "Leyline of Anticipation", 1);
|
||||
assertGraveyardCount(playerA, "Silvercoat Lion", 0);
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -136,6 +136,7 @@ public class DamageDistributionTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 14);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
assertPermanentCount(playerA, "Leyline of Sanctity", 1);
|
||||
assertPermanentCount(playerB, "Battle Mastery", 1);
|
||||
// no creatures dies
|
||||
assertPermanentCount(playerA, "Heliod, God of the Sun", 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue