* Added logic to remove control effects that refer to permanents of a player that leaves the game.

This commit is contained in:
LevelX2 2016-12-18 16:57:34 +01:00
parent da9e9a1180
commit d85b9943f1
3 changed files with 167 additions and 0 deletions

View file

@ -1066,6 +1066,10 @@ public class ContinuousEffects implements Serializable {
}
}
public HashSet<Ability> getLayeredEffectAbilities(ContinuousEffect effect) {
return layeredEffects.getAbility(effect.getId());
}
/**
* Adds a continuous ability with a reference to a sourceId. It's used for
* effects that cease to exist again So this effects were removed again