small fix to previous refactor

This commit is contained in:
Evan Kranzler 2022-02-18 22:23:24 -05:00
parent 8040e7d1e8
commit 77cc5646b1

View file

@ -194,7 +194,7 @@ public class ContinuousEffectsList<T extends ContinuousEffect> extends ArrayList
public void addEffect(T effect, Ability source) {
Set<Ability> set = effectAbilityMap.computeIfAbsent(effect.getId(), x -> new HashSet<>());
if (set.stream()
.filter(ability -> ability.getId().equals(source.getId()))
.filter(ability -> ability.getSourceId().equals(source.getSourceId()))
.map(Ability::getId)
.anyMatch(source.getId()::equals)) {
return;