mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +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())
|
.filter(t -> !t.isNotTarget())
|
||||||
.map(Target::getTargets)
|
.map(Target::getTargets)
|
||||||
.flatMap(Collection::stream)
|
.flatMap(Collection::stream)
|
||||||
.anyMatch(uuid -> !getSourceId().equals(uuid) && uuid != null)) {
|
.filter(Objects::nonNull)
|
||||||
|
.distinct()
|
||||||
|
.filter(getSourceId()::equals)
|
||||||
|
.count() != 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.getEffects().setTargetPointer(new FixedTarget(spell, game));
|
this.getEffects().setTargetPointer(new FixedTarget(spell, game));
|
||||||
|
|
Loading…
Reference in a new issue