Merge pull request #3404 from drmDev/master

only fixes 2 of 3 issues with Scarabs. infect damage not triggering infect still for #3402
This commit is contained in:
Derek M 2017-05-20 09:48:16 -04:00 committed by GitHub
commit 74ad6004f0
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ class NestOfScarabsTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
boolean weAreDoingIt = getControllerId().equals(event.getPlayerId());
boolean weAreDoingIt = getControllerId().equals(game.getControllerId(event.getSourceId()));
boolean isM1M1Counters = event.getData().equals(CounterType.M1M1.getName());
if (weAreDoingIt && isM1M1Counters && event.getAmount() > 0) {
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getTargetId());

View file

@ -86,7 +86,7 @@ public class NestOfScarabsTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertPermanentCount(playerA, nestScarabs, 1);
assertPermanentCount(playerA, nestScarabs, 1);
assertHandCount(playerA, blackZenith, 0);
assertLibraryCount(playerA, blackZenith, 1); // shuffles back into library
assertGraveyardCount(playerA, fugitive, 1);