Some minor changes.

This commit is contained in:
LevelX2 2018-03-17 23:40:36 +01:00
parent 711fa7dcec
commit 442130beb6
6 changed files with 37 additions and 16 deletions

View file

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

View file

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