Added additional test for combat (ai shouldn't attack against creatures with double strike).

This commit is contained in:
magenoxx 2011-12-24 18:59:22 +04:00
parent 53e9d2752b
commit 3e3a930794

View file

@ -40,4 +40,21 @@ public class DamageDistributionTest extends CardTestBase {
assertLife(playerB, 2);
}
@Test
public void testNotAttackingVersusDoubleStrike() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Merfolk Looter");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Warren Instigator");
setLife(playerB, 4);
execute();
// should block and die
assertPermanentCount(playerA, "Merfolk Looter", 1);
assertPermanentCount(playerB, "Warren Instigator", 1);
// creature is blocked
// blocker dies and second strike does nothing
assertLife(playerB, 4);
}
}