-
Notifications
You must be signed in to change notification settings - Fork 787
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
1 parent
efed3a3
commit 554ba87
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
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
39 changes: 39 additions & 0 deletions
39
Mage.Tests/src/test/java/org/mage/test/cards/replacement/prevent/TheMindskinnerTest.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,39 @@ | ||
package org.mage.test.cards.replacement.prevent; | ||
|
||
import mage.constants.PhaseStep; | ||
import mage.constants.Zone; | ||
import org.junit.Test; | ||
import org.mage.test.serverside.base.CardTestPlayerBase; | ||
|
||
public class TheMindskinnerTest extends CardTestPlayerBase { | ||
|
||
private static final String mindskinner = "The Mindskinner"; // 10/1 can't be blocked | ||
// If a source you control would deal damage to an opponent, prevent that damage and each opponent mills that many cards. | ||
|
||
private static final String piker = "Goblin Piker"; // 2/1 | ||
|
||
private static final String bolt = "Lightning Bolt"; | ||
|
||
@Test | ||
public void testPreventionAndMill() { | ||
addCard(Zone.BATTLEFIELD, playerA, mindskinner); | ||
addCard(Zone.BATTLEFIELD, playerA, piker); | ||
addCard(Zone.HAND, playerA, bolt); | ||
addCard(Zone.BATTLEFIELD, playerA, "Mountain"); | ||
|
||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, bolt, playerB); | ||
|
||
attack(1, playerA, piker, playerB); | ||
|
||
setStrictChooseMode(true); | ||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); | ||
execute(); | ||
|
||
assertLife(playerA, 20); | ||
assertLife(playerB, 20); | ||
|
||
assertGraveyardCount(playerA, 1); // bolt | ||
assertGraveyardCount(playerB, 5); | ||
} | ||
|
||
} |