mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Added extra test to explicitly test that it's not possible to target
This commit is contained in:
parent
20a50af475
commit
ebd7d3ef15
1 changed files with 23 additions and 0 deletions
|
@ -79,4 +79,27 @@ public class ProtectionFromColorTest extends CardTestPlayerBase {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that the creature is also protected from targeting
|
||||
*/
|
||||
@Test
|
||||
public void testProtectionTargeting() {
|
||||
// {3}{W}
|
||||
// Protection from white
|
||||
String archonOfAbsolution = "Archon of Absolution";
|
||||
// {W}
|
||||
// Exile target creature
|
||||
String pathToExile = "Path to Exile";
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, archonOfAbsolution);
|
||||
|
||||
addCard(Zone.HAND, playerB, pathToExile);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Plains");
|
||||
|
||||
checkPlayableAbility("Protection works", 1, PhaseStep.PRECOMBAT_MAIN, playerB, "Cast " + pathToExile, false);
|
||||
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, archonOfAbsolution, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue