mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Some changes related to #4893.
This commit is contained in:
parent
9919a3403d
commit
cddd81123b
37 changed files with 245 additions and 137 deletions
|
|
@ -6,14 +6,11 @@ import mage.constants.PhaseStep;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Assert;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author noxx
|
||||
|
|
@ -179,6 +176,9 @@ public class PhantasmalImageTest extends CardTestPlayerBase {
|
|||
@Test
|
||||
public void testCopyEntersTapped() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
// You may have Phantasmal Image enter the battlefield as a copy of any creature
|
||||
// on the battlefield, except it's an Illusion in addition to its other types and
|
||||
// it gains "When this creature becomes the target of a spell or ability, sacrifice it."
|
||||
addCard(Zone.HAND, playerA, "Phantasmal Image");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Geralf's Messenger");
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
|
||||
/**
|
||||
* Harm's Way: The next 2 damage that a source of your choice would deal to you
|
||||
* and/or permanents you control this turn is dealt to any target
|
||||
* instead.
|
||||
* and/or permanents you control this turn is dealt to any target instead.
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
|
|
@ -23,7 +22,7 @@ public class HarmsWayRedirectDamageTest extends CardTestPlayerBase {
|
|||
addCard(Zone.HAND, playerA, "Lightning Bolt");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain");
|
||||
|
||||
addCard(Zone.HAND, playerB, "Harm's Way");
|
||||
addCard(Zone.HAND, playerB, "Harm's Way"); // Instant {W}
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Plains");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
|
||||
|
|
@ -33,6 +32,9 @@ public class HarmsWayRedirectDamageTest extends CardTestPlayerBase {
|
|||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Lightning Bolt", 1);
|
||||
assertGraveyardCount(playerB, "Harm's Way", 1);
|
||||
|
||||
// 2 damage was redirected back
|
||||
assertLife(playerA, 18);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ package org.mage.test.cards.single.bfz;
|
|||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue