From 1542608c7db632be1640e30ba030e080d1cb8b5f Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 28 Apr 2021 19:25:51 -0400 Subject: [PATCH] [STX] fixed Reflective Golem triggering off of spells that don't target it (fixes #7782) --- Mage.Sets/src/mage/cards/r/ReflectiveGolem.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/r/ReflectiveGolem.java b/Mage.Sets/src/mage/cards/r/ReflectiveGolem.java index 75eff46536..e1653f08b3 100644 --- a/Mage.Sets/src/mage/cards/r/ReflectiveGolem.java +++ b/Mage.Sets/src/mage/cards/r/ReflectiveGolem.java @@ -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));