mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
UT for issue 3542
This commit is contained in:
parent
feec4269eb
commit
235443c04d
2 changed files with 20 additions and 0 deletions
|
|
@ -13,6 +13,8 @@
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Mage Tests</name>
|
<name>Mage Tests</name>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
||||||
*/
|
*/
|
||||||
public class StinkdrinkerBanditTest extends CardTestPlayerBase {
|
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.
|
* 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(playerA, 20);
|
||||||
assertLife(playerB, 9); // Agent pumped to 5, Amphin pumped to 4, Sable stays at 2 power (11 damage)
|
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
Add a link
Reference in a new issue