mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
some reworking of Equip, Fortify, and Reconfigure
This commit is contained in:
parent
9c8943384a
commit
4ede390e40
8 changed files with 95 additions and 142 deletions
|
|
@ -16,6 +16,8 @@ public class ReconfigureTest extends CardTestPlayerBase {
|
|||
private static final String lion = "Silvercoat Lion";
|
||||
private static final String boar = "Bronzeplate Boar";
|
||||
private static final String aid = "Sigarda's Aid";
|
||||
private static final String paladin = "Puresteel Paladin";
|
||||
private static final String relic = "Darksteel Relic";
|
||||
|
||||
@Test
|
||||
public void testAttach() {
|
||||
|
|
@ -79,4 +81,25 @@ public class ReconfigureTest extends CardTestPlayerBase {
|
|||
assertPowerToughness(playerA, lion, 2 + 3, 2 + 2);
|
||||
assertAbility(playerA, lion, TrampleAbility.getInstance(), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPuresteelPaladin() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, lion);
|
||||
addCard(Zone.BATTLEFIELD, playerA, boar);
|
||||
addCard(Zone.BATTLEFIELD, playerA, paladin);
|
||||
addCard(Zone.BATTLEFIELD, playerA, relic, 2);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Equip", lion);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertType(boar, CardType.CREATURE, false);
|
||||
assertSubtype(boar, SubType.EQUIPMENT);
|
||||
assertIsAttachedTo(playerA, boar, lion);
|
||||
assertPowerToughness(playerA, lion, 2 + 3, 2 + 2);
|
||||
assertAbility(playerA, lion, TrampleAbility.getInstance(), true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue