mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
small fix to previous refactor
This commit is contained in:
parent
8040e7d1e8
commit
77cc5646b1
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ public class ContinuousEffectsList<T extends ContinuousEffect> extends ArrayList
|
||||||
public void addEffect(T effect, Ability source) {
|
public void addEffect(T effect, Ability source) {
|
||||||
Set<Ability> set = effectAbilityMap.computeIfAbsent(effect.getId(), x -> new HashSet<>());
|
Set<Ability> set = effectAbilityMap.computeIfAbsent(effect.getId(), x -> new HashSet<>());
|
||||||
if (set.stream()
|
if (set.stream()
|
||||||
.filter(ability -> ability.getId().equals(source.getId()))
|
.filter(ability -> ability.getSourceId().equals(source.getSourceId()))
|
||||||
.map(Ability::getId)
|
.map(Ability::getId)
|
||||||
.anyMatch(source.getId()::equals)) {
|
.anyMatch(source.getId()::equals)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue