From 7ded7f0e36cd5052ba7b81a41ec9697046eed2bc Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 13 Oct 2013 17:47:17 +0200 Subject: [PATCH] * Fixed a bug of mass destruction class (DestroyAllEffect) that the no regeneration option was not applied (concerns ~50 cards). --- Mage/src/mage/abilities/effects/common/DestroyAllEffect.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/DestroyAllEffect.java b/Mage/src/mage/abilities/effects/common/DestroyAllEffect.java index 9f9815093f3..a8d91b4ac0a 100644 --- a/Mage/src/mage/abilities/effects/common/DestroyAllEffect.java +++ b/Mage/src/mage/abilities/effects/common/DestroyAllEffect.java @@ -28,9 +28,9 @@ package mage.abilities.effects.common; -import mage.constants.Outcome; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; +import mage.constants.Outcome; import mage.filter.FilterPermanent; import mage.game.Game; import mage.game.permanent.Permanent; @@ -62,6 +62,7 @@ public class DestroyAllEffect extends OneShotEffect { public DestroyAllEffect(final DestroyAllEffect effect) { super(effect); this.filter = effect.filter.copy(); + this.noRegen = effect.noRegen; } @Override @@ -72,7 +73,7 @@ public class DestroyAllEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) { - permanent.destroy(source.getId(), game, noRegen); + permanent.destroy(source.getSourceId(), game, noRegen); } return true; }