[MID] fixed Sludge Monster only applying to a single creature at a time (fixes #8459)

This commit is contained in:
Evan Kranzler 2021-11-16 07:02:41 -05:00
parent 20bf4bcf5a
commit 9ca9bfa122

View file

@ -92,16 +92,15 @@ class SludgeMonsterEffect extends ContinuousEffectImpl {
switch (layer) {
case AbilityAddingRemovingEffects_6:
permanent.removeAllAbilities(source.getSourceId(), game);
return true;
break;
case PTChangingEffects_7:
if (sublayer == SubLayer.SetPT_7b) {
permanent.getPower().setValue(2);
permanent.getToughness().setValue(2);
return true;
}
}
}
return false;
return true;
}
@Override
@ -111,11 +110,6 @@ class SludgeMonsterEffect extends ContinuousEffectImpl {
@Override
public boolean hasLayer(Layer layer) {
switch (layer) {
case AbilityAddingRemovingEffects_6:
case PTChangingEffects_7:
return true;
}
return false;
return layer == Layer.AbilityAddingRemovingEffects_6 || layer == Layer.PTChangingEffects_7;
}
}