mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed clearing temporary effects while rollbacks
This commit is contained in:
parent
028ea0e04c
commit
5b9135ef71
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ public class ContinuousEffectsList<T extends ContinuousEffect> extends ArrayList
|
|||
public void removeEffects(UUID effectIdToRemove, Set<Ability> abilitiesToRemove) {
|
||||
Set<Ability> abilities = effectAbilityMap.get(effectIdToRemove);
|
||||
if (abilitiesToRemove != null && abilities != null) {
|
||||
abilities.removeAll(abilitiesToRemove);
|
||||
abilities.removeIf(ability -> abilitiesToRemove.stream().anyMatch(a -> a.isSameInstance(ability)));
|
||||
}
|
||||
if (abilities == null || abilities.isEmpty()) {
|
||||
for (Iterator<T> iterator = this.iterator(); iterator.hasNext();) {
|
||||
|
|
Loading…
Reference in a new issue