mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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) {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue