forked from External/mage
Some minor changes.
This commit is contained in:
parent
58a22fc82c
commit
c2b68a9b6f
2 changed files with 9 additions and 3 deletions
|
|
@ -1078,7 +1078,7 @@ public class ContinuousEffects implements Serializable {
|
|||
public void addEffect(ContinuousEffect effect, UUID sourceId, Ability source) {
|
||||
if (!(source instanceof MageSingleton)) { // because MageSingletons may never be removed by removing the temporary effecs they are not added to the temporaryEffects to prevent this
|
||||
effect.setTemporary(true);
|
||||
Set abilities = temporaryEffects.get(effect);
|
||||
Set<Ability> abilities = temporaryEffects.get(effect);
|
||||
if (abilities == null) {
|
||||
abilities = new HashSet<>();
|
||||
temporaryEffects.put(effect, abilities);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue