[STX] fixed Reflective Golem triggering off of spells that don't target it (fixes #7782)

This commit is contained in:
Evan Kranzler 2021-04-28 19:25:51 -04:00
parent 96d026e4af
commit 1542608c7d

View file

@ -87,7 +87,10 @@ class ReflectiveGolemTriggeredAbility extends TriggeredAbilityImpl {
.filter(t -> !t.isNotTarget())
.map(Target::getTargets)
.flatMap(Collection::stream)
.anyMatch(uuid -> !getSourceId().equals(uuid) && uuid != null)) {
.filter(Objects::nonNull)
.distinct()
.filter(getSourceId()::equals)
.count() != 1) {
return false;
}
this.getEffects().setTargetPointer(new FixedTarget(spell, game));