From db7694ae6043173a4018eb6c5a0fce04a5cc3053 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 14 Feb 2013 16:18:18 +0100 Subject: [PATCH] Solved a bug, that by removing the abilities of a permanent (LoseAllAbilitiesTargetEffect), the permanent was removed from locked in objects of effects from other sources than this permanent. --- Mage/src/mage/game/permanent/PermanentImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/game/permanent/PermanentImpl.java b/Mage/src/mage/game/permanent/PermanentImpl.java index 28a5b07315..c07f56d7c8 100644 --- a/Mage/src/mage/game/permanent/PermanentImpl.java +++ b/Mage/src/mage/game/permanent/PermanentImpl.java @@ -215,7 +215,9 @@ public abstract class PermanentImpl> extends CardImpl public void removeAllAbilities(UUID sourceId, Game game) { getAbilities().clear(); // removes abilities that were gained from abilities of this permanent - game.resetForSourceId(this.getId()); + game.getContinuousEffects().removeGainedEffectsForSource(this.getId()); + // remove gained triggered abilities + game.getState().resetForSourceId(this.getId()); } @Override