mirror of
https://github.com/correl/mage.git
synced 2025-04-09 01:01:06 -09:00
UT for issue 3542
This commit is contained in:
parent
feec4269eb
commit
235443c04d
2 changed files with 20 additions and 0 deletions
Mage.Tests
|
@ -13,6 +13,8 @@
|
|||
<packaging>jar</packaging>
|
||||
<name>Mage Tests</name>
|
||||
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
|
|
|
@ -15,6 +15,8 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
||||
*/
|
||||
public class StinkdrinkerBanditTest extends CardTestPlayerBase {
|
||||
|
||||
private String stinkdrinker = "Stinkdrinker Bandit";
|
||||
|
||||
/**
|
||||
* Reported bug: Stinkdrinker Bandit is incorrectly giving the +2/+1 bonus even to Rogues that do get blocked.
|
||||
|
@ -50,4 +52,20 @@ public class StinkdrinkerBanditTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 9); // Agent pumped to 5, Amphin pumped to 4, Sable stays at 2 power (11 damage)
|
||||
}
|
||||
|
||||
@Test
|
||||
public void stinkDrinkerPesterMite(){
|
||||
String pestermite = "Pestermite";
|
||||
addCard(Zone.BATTLEFIELD, playerA, stinkdrinker);
|
||||
addCard(Zone.BATTLEFIELD, playerA, pestermite);
|
||||
|
||||
attack(1, playerA, pestermite);
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, pestermite, 4, 2);
|
||||
assertPowerToughness(playerA, stinkdrinker, 2, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue