mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Added additional test for combat (ai shouldn't attack against creatures with double strike).
This commit is contained in:
parent
53e9d2752b
commit
3e3a930794
1 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue