mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 03:39:54 -08:00
Some minor changes.
This commit is contained in:
parent
711fa7dcec
commit
442130beb6
6 changed files with 37 additions and 16 deletions
|
|
@ -57,7 +57,7 @@ public class CastCreaturesTest extends CardTestPlayerBaseAI {
|
|||
* first creature
|
||||
*/
|
||||
@Test
|
||||
// TODO: find out why sometimes Produces error probably because of wrong mana usage of the AI - Not solved yet
|
||||
// TODO: Find out why sometimes this produces an error - probably because of wrong mana usage of the AI - Not solved yet
|
||||
public void testSimpleCast2() {
|
||||
addCard(Zone.HAND, playerA, "Silvercoat Lion");
|
||||
addCard(Zone.HAND, playerA, "Silvercoat Lion");
|
||||
|
|
@ -67,6 +67,8 @@ public class CastCreaturesTest extends CardTestPlayerBaseAI {
|
|||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertTappedCount("Plains", true, 2);
|
||||
assertTappedCount("Mountain", true, 2);
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,4 +65,26 @@ public class CastDestroySpellsTest extends CardTestPlayerBaseAI {
|
|||
assertGraveyardCount(playerB, "Silvercoat Lion", 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cast Divine Verdict if the opponent attacks
|
||||
*/
|
||||
@Test
|
||||
public void testCastSpellTargingAttacker() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
|
||||
|
||||
// Destroy target attacking or blocking creature.
|
||||
addCard(Zone.HAND, playerA, "Divine Verdict"); // INSTANT {3}{W}
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion");
|
||||
|
||||
attack(2, playerB, "Silvercoat Lion");
|
||||
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
|
||||
assertGraveyardCount(playerA, "Divine Verdict", 1);
|
||||
assertGraveyardCount(playerB, "Silvercoat Lion", 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue