mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
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:
parent
e4145c90b5
commit
db7694ae60
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue