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.

This commit is contained in:
LevelX2 2013-02-14 16:18:18 +01:00
parent e4145c90b5
commit db7694ae60

View file

@ -215,7 +215,9 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> 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