mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 17:29:58 -08:00
- Added Aven Trailblazer, Mark of Asylum, and Mirror-Sigil Sergeant. Tests for each.
This commit is contained in:
parent
f9a53e56fc
commit
00f0e6a6d3
8 changed files with 625 additions and 0 deletions
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.mage.test.cards.conditional;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public class MirrorSigilSergeantTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testTokenEffect() {
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mirror-Sigil Sergeant");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Merfolk Spy");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 10);
|
||||
|
||||
addCard(Zone.LIBRARY, playerB, "Plains");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Memnite");
|
||||
|
||||
setStopAt(2, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Mirror-Sigil Sergeant", 2);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTokenEffect2() {
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mirror-Sigil Sergeant");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 10);
|
||||
|
||||
addCard(Zone.LIBRARY, playerB, "Plains");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Memnite");
|
||||
|
||||
setStopAt(2, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Mirror-Sigil Sergeant", 1);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.mage.test.cards.continuous;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jeff
|
||||
*/
|
||||
public class AvenTrailblazerTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testAvenTrailblazerEffect() {
|
||||
|
||||
addCard(Zone.HAND, playerA, "Aven Trailblazer");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "City of Brass", 6);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Plains", 10);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Aven Trailblazer");
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Aven Trailblazer", 2, 2);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.mage.test.cards.prevention;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public class MarkOfAsylumTest extends CardTestPlayerBase{
|
||||
|
||||
@Test
|
||||
public void testMarkOfAsylumEffect() {
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mark of Asylum");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Memnite");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Zone.HAND, playerA, "Lightning Bolt", 2);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Arbor Elf", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Memnite");
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", "Arbor Elf");
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Memnite", 1);
|
||||
assertPermanentCount(playerB, "Arbor Elf", 0);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue