mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Fixed #8388
This commit is contained in:
parent
fa79c1eba5
commit
25cb6e334d
1 changed files with 5 additions and 2 deletions
|
@ -64,9 +64,12 @@ class TreetopBracersRestrictEffect extends RestrictionEffect {
|
|||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
Permanent equipment = game.getPermanent(source.getSourceId());
|
||||
if (equipment != null && equipment.getAttachedTo() != null) {
|
||||
if (equipment != null
|
||||
&& equipment.getAttachedTo() != null) {
|
||||
Permanent equipped = game.getPermanent(equipment.getAttachedTo());
|
||||
return permanent != null && permanent.getId().equals(equipped.getId());
|
||||
return equipped != null
|
||||
&& permanent != null
|
||||
&& permanent.getId().equals(equipped.getId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue