forked from magefree/mage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
Mage.Tests/src/test/java/org/mage/test/cards/single/SpellskiteTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.mage.test.cards.single; | ||
|
||
import mage.constants.PhaseStep; | ||
import mage.constants.Zone; | ||
import org.junit.Test; | ||
import org.mage.test.serverside.base.CardTestPlayerBase; | ||
|
||
/** | ||
* Created by goesta on 12/02/2017. | ||
*/ | ||
public class SpellskiteTest extends CardTestPlayerBase { | ||
|
||
@Test | ||
public void testThatSplitDamageCanGetRedirected() { | ||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1); | ||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1); | ||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1); | ||
|
||
addCard(Zone.BATTLEFIELD, playerB, "Spellskite"); | ||
addCard(Zone.BATTLEFIELD, playerB, "Scute Mob"); | ||
addCard(Zone.BATTLEFIELD, playerB, "Island"); | ||
|
||
addCard(Zone.HAND, playerA, "Fiery Justice"); | ||
|
||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Fiery Justice"); | ||
addTarget(playerA, "Scute Mob"); | ||
setChoice(playerA, "X=1"); | ||
addTarget(playerA, "Spellskite"); | ||
setChoice(playerA, "X=4"); | ||
|
||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerB, "{UP}: Change a target of target spell or ability to {this}.", "Fiery Justice", "Fiery Justice"); | ||
setChoice(playerA, "Yes"); | ||
|
||
setStopAt(1, PhaseStep.BEGIN_COMBAT); | ||
execute(); | ||
|
||
assertGraveyardCount(playerB, 1); | ||
assertPowerToughness(playerB, "Scute Mob", 1, 1); | ||
} | ||
} |