mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
* Some target pointer changes and code clean up.
This commit is contained in:
parent
142681c354
commit
7a78be8c6a
207 changed files with 531 additions and 358 deletions
|
|
@ -123,6 +123,8 @@ public class ManifestTest extends CardTestPlayerBase {
|
|||
*/
|
||||
@Test
|
||||
public void testNylea() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island", 2);
|
||||
// Exile target creature. Its controller manifests the top card of their library {1}{U}
|
||||
addCard(Zone.HAND, playerB, "Reality Shift");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package org.mage.test.cards.abilities.other;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
|
|
@ -10,14 +9,20 @@ public class ImpelledGiantTest extends CardTestPlayerBase {
|
|||
|
||||
@Test
|
||||
public void testGainsPower() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Impelled Giant");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Hurloon Minotaur");
|
||||
setStrictChooseMode(true);
|
||||
// Trample
|
||||
// Tap an untapped red creature you control other than Impelled Giant: Impelled Giant gets +X/+0 until end of turn, where X is the power of the creature tapped this way.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Impelled Giant"); // Creature 3/3
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Hurloon Minotaur"); // Creature 2/3
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tap an untapped red creature you control other than Impelled Giant");
|
||||
setChoice(playerA, "Hurloon Minotaur");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertTapped("Hurloon Minotaur", true);
|
||||
assertPowerToughness(playerA, "Impelled Giant", 5, 3);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,72 @@
|
|||
/*
|
||||
* 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.single.cmd;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class AcornCatapultTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testAcornCatapultCreature() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
|
||||
// {1}, {T}: Acorn Catapult deals 1 damage to any target.
|
||||
// That permanent's controller or that player creates a 1/1 green Squirrel creature token.
|
||||
addCard(Zone.HAND, playerA, "Acorn Catapult"); //Artifact {4}
|
||||
|
||||
// {1}{B}, {T}: Target player loses 1 life.
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Acolyte of Xathrid"); // Creature 0/1
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Acorn Catapult");
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}, {T}:", "Acolyte of Xathrid");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, "Acorn Catapult", 1);
|
||||
|
||||
assertGraveyardCount(playerB, "Acolyte of Xathrid", 1);
|
||||
|
||||
assertPermanentCount(playerB, "Squirrel", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAcornCatapultPlayer() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
|
||||
// {1}, {T}: Acorn Catapult deals 1 damage to any target.
|
||||
// That permanent's controller or that player creates a 1/1 green Squirrel creature token.
|
||||
addCard(Zone.HAND, playerA, "Acorn Catapult"); //Artifact {4}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Acorn Catapult");
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}, {T}:", playerB);
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, "Acorn Catapult", 1);
|
||||
|
||||
assertLife(playerB, 19);
|
||||
|
||||
assertPermanentCount(playerB, "Squirrel", 1);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ import org.junit.Test;
|
|||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class FlusterstormTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testThatFlusterstormGoesToGraveyard() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue