mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
parent
4e5bfee279
commit
47e2bf9960
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class TheAethersparkEffect extends RestrictionEffect {
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||||
return Optional
|
return Optional
|
||||||
.ofNullable(source.getControllerId())
|
.ofNullable(source.getSourceId())
|
||||||
.map(game::getPermanent)
|
.map(game::getPermanent)
|
||||||
.map(Permanent::getAttachedTo)
|
.map(Permanent::getAttachedTo)
|
||||||
.map(game::getPermanent)
|
.map(game::getPermanent)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue