Added extra test to explicitly test that it's not possible to target

This commit is contained in:
Alex Vasile 2022-08-26 20:16:29 -04:00
parent 20a50af475
commit ebd7d3ef15

View file

@ -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);
}
}