mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Damage distribution test. Reproduces Issue 375.
This commit is contained in:
parent
268acd0904
commit
9fe16d3518
2 changed files with 34 additions and 0 deletions
Binary file not shown.
|
@ -0,0 +1,34 @@
|
|||
package org.mage.test.combat;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import mage.Constants;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ayrat
|
||||
*/
|
||||
public class DamageDistributionTest extends CardTestBase {
|
||||
|
||||
@Test
|
||||
public void testDoubleStrike() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Warren Instigator");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Merfolk Looter");
|
||||
setLife(playerB, 4);
|
||||
|
||||
execute();
|
||||
|
||||
Permanent instigator = getPermanent("Warren Instigator", playerA.getId());
|
||||
Assert.assertNotNull(instigator);
|
||||
|
||||
// should block and die
|
||||
assertPermanentCount(playerB, "Merfolk Looter", 0);
|
||||
|
||||
// creature is blocked
|
||||
// blocker dies and second strike does nothing
|
||||
assertLife(playerB, 4);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue