mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
* Fixed a bug that the AI did for target selection not check correctly players with hexproof ability.
This commit is contained in:
parent
503dad24b3
commit
8686f4f777
10 changed files with 48 additions and 29 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue