mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
* Updated UnequipEventTest.
This commit is contained in:
parent
bf1da82567
commit
180c7dfff6
2 changed files with 14 additions and 6 deletions
|
@ -57,7 +57,7 @@ public final class NazahnReveredBladesmith extends CardImpl {
|
|||
|
||||
// When Nazahn, Revered Bladesmith enters the battlefield, search your library for an Equipment card and reveal it. If you reveal a card named Hammer of Nazahn this way, put it onto the battlefield. Otherwise, put that card into your hand. Then shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandOrOnBattlefieldEffect(target, true, true, "Hammer of Nazahn"), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandOrOnBattlefieldEffect(target, true, true, "Hammer of Nazahn"), false));
|
||||
|
||||
// Whenever an equipped creature you control attacks, you may tap target creature defending player controls.
|
||||
Ability ability = new AttacksCreatureYouControlTriggeredAbility(new NazahnTapEffect(), true, equippedFilter, true);
|
||||
|
|
|
@ -65,7 +65,7 @@ public class UnequipEventTest extends CardTestPlayerBase {
|
|||
// Equipped creature gets +2/+0 and has indestructible.
|
||||
// Equip {4}
|
||||
addCard(Zone.LIBRARY, playerA, "Hammer of Nazahn");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 5);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 6);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
|
||||
// Destroy target permanent. Its controller creates a 3/3 green Beast creature token.
|
||||
|
@ -73,17 +73,25 @@ public class UnequipEventTest extends CardTestPlayerBase {
|
|||
// Equipped creature gets +2/+2 and has infect.
|
||||
// Whenever Grafted Exoskeleton becomes unattached from a permanent, sacrifice that permanent.
|
||||
// Equip {2}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grafted Exoskeleton", 1);
|
||||
addCard(Zone.HAND, playerA, "Grafted Exoskeleton", 1); // Artifact Equipment - {4}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Nazahn, Revered Bladesmith");
|
||||
setChoice(playerA, "Hammer of Nazahn");
|
||||
addTarget(playerA, "Hammer of Nazahn");
|
||||
setChoice(playerA, "Yes"); // Put the hammer on the battlefield
|
||||
setChoice(playerA, "Yes"); // Attach the hammer to a creature
|
||||
addTarget(playerA, "Nazahn, Revered Bladesmith");
|
||||
|
||||
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Equip {2}");
|
||||
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Grafted Exoskeleton");
|
||||
setChoice(playerA, "Yes"); // Attach the Grafted Exoskeleton to a creature
|
||||
addTarget(playerA, "Nazahn, Revered Bladesmith");
|
||||
|
||||
castSpell(3, PhaseStep.BEGIN_COMBAT, playerA, "Beast Within", "Grafted Exoskeleton");
|
||||
|
||||
setStopAt(3, PhaseStep.END_COMBAT);
|
||||
setStrictChooseMode(true);
|
||||
execute();
|
||||
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
|
||||
|
|
Loading…
Reference in a new issue