added nest of scarabs test for wither. unable to replicate #3402

This commit is contained in:
Derek Monturo 2017-06-04 21:44:19 -04:00
parent 14a68ae010
commit 2b25b53541

View file

@ -154,7 +154,6 @@ public class NestOfScarabsTest extends CardTestPlayerBase {
} }
/* /*
* NOTE: test is failing due to bug in code. See issue #3402
Reported bug: Nest of Scarabs not triggering off infect damage dealt by creatures such as Blight Mamba Reported bug: Nest of Scarabs not triggering off infect damage dealt by creatures such as Blight Mamba
*/ */
@Test @Test
@ -179,4 +178,30 @@ public class NestOfScarabsTest extends CardTestPlayerBase {
assertCounterCount(playerB, wOmens, CounterType.M1M1, 1); assertCounterCount(playerB, wOmens, CounterType.M1M1, 1);
assertPermanentCount(playerA, "Insect", 1); assertPermanentCount(playerA, "Insect", 1);
} }
/*
Reported bug: Nest of Scarabs not triggering off wither damage dealt by creatures such as Sickle Ripper
*/
@Test
public void scarab_witherDamageTriggers() {
String sickleRipper = "Sickle Ripper"; // {1}{B} 2/1 Creature - Elemental Warrior, Wither
String wOmens = "Wall of Omens"; // {1}{W} 0/4 defender ETB: draw a card
addCard(Zone.BATTLEFIELD, playerA, nestScarabs);
addCard(Zone.BATTLEFIELD, playerA, sickleRipper);
addCard(Zone.BATTLEFIELD, playerB, wOmens);
attack(3, playerA, sickleRipper);
block(3, playerB, wOmens, sickleRipper);
setStopAt(3, PhaseStep.END_COMBAT);
execute();
assertLife(playerB, 20);
assertPowerToughness(playerB, wOmens, -2, 2); // 0/4 with two -1/-1 counters
assertCounterCount(playerB, wOmens, CounterType.M1M1, 2);
assertPermanentCount(playerA, "Insect", 2);
}
} }