mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[STX] fixed Reflective Golem triggering off of spells that don't target it (fixes #7782)
This commit is contained in:
parent
96d026e4af
commit
1542608c7d
1 changed files with 4 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue