* Fixed a bug that the AI did for target selection not check correctly players with hexproof ability.

This commit is contained in:
LevelX2 2015-05-02 09:47:38 +02:00
parent 503dad24b3
commit 8686f4f777
10 changed files with 48 additions and 29 deletions

View file

@ -74,4 +74,30 @@ public class DontUntapTest extends CardTestPlayerBase {
assertLife(playerB, 20);
}
/**
* I used Ajani Vengeant's +1 on a Sublime Archangel and it untap on it's controller's upkeep.
*/
@Test
public void TestAjaniVengeantFirst() {
addCard(Zone.BATTLEFIELD, playerA, "Sublime Archangel", 1); // 4/3
// +1: Target permanent doesn't untap during its controller's next untap step.
addCard(Zone.BATTLEFIELD, playerB, "Ajani Vengeant", 1);
attack(1, playerA, "Sublime Archangel");
activateAbility(2, PhaseStep.POSTCOMBAT_MAIN, playerB, "+1: Target permanent doesn't","Sublime Archangel");
setStopAt(3, PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 15); // 4 + 1 from Exalted
assertTapped("Sublime Archangel", true);
}
}