1
0
Fork 0
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:
igoudt 2017-06-27 11:35:17 +02:00
parent feec4269eb
commit 235443c04d
2 changed files with 20 additions and 0 deletions
Mage.Tests
pom.xml
src/test/java/org/mage/test/cards/single

View file

@ -13,6 +13,8 @@
<packaging>jar</packaging>
<name>Mage Tests</name>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>

View file

@ -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);
}
}