mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
[OTJ][BIG] Cleanup some card implementation
This commit is contained in:
parent
35a22527f1
commit
d591a89495
7 changed files with 50 additions and 68 deletions
|
|
@ -0,0 +1,41 @@
|
|||
package org.mage.test.cards.single.big;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public class TerritoryForgeTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* {@link mage.cards.t.TerritoryForge Territory Forge} {4}{R}
|
||||
* Artifact
|
||||
* When Territory Forge enters the battlefield, if you cast it, exile target artifact or land.
|
||||
* Territory Forge has all activated abilities of the exiled card.
|
||||
*/
|
||||
private static final String forge = "Territory Forge";
|
||||
|
||||
@Test
|
||||
public void test_Simple() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Braidwood Cup"); // {T}: You gain 1 life.
|
||||
addCard(Zone.HAND, playerA, forge);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, forge);
|
||||
addTarget(playerA, "Braidwood Cup");
|
||||
|
||||
checkExileCount("After etb, Cup in exile", 1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Braidwood Cup", 1);
|
||||
activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "{T}");
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20 + 1);
|
||||
assertTapped(forge, true);
|
||||
}
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ public class AssimilationAegisTest extends CardTestPlayerBase {
|
|||
private static final String aegis = "Assimilation Aegis";
|
||||
|
||||
@Test
|
||||
public void TestEquipChainThenDisenchant() {
|
||||
public void test_Equip_Equip_Disenchant() {
|
||||
setStrictChooseMode(true);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Tundra", 9);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue