fix #13430 (The Aetherspark)

presumably this was the problem
This commit is contained in:
xenohedron 2025-03-10 23:43:11 -04:00
parent 4e5bfee279
commit 47e2bf9960

View file

@ -100,7 +100,7 @@ class TheAethersparkEffect extends RestrictionEffect {
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
return Optional
.ofNullable(source.getControllerId())
.ofNullable(source.getSourceId())
.map(game::getPermanent)
.map(Permanent::getAttachedTo)
.map(game::getPermanent)