mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Xathrid Gorgon - Fixed that it's activated ability was wrongly applied to all permanents.
This commit is contained in:
parent
6312649175
commit
dc3b73e384
1 changed files with 6 additions and 7 deletions
|
@ -109,13 +109,12 @@ class XathridGorgonCantActivateEffect extends RestrictionEffect {
|
|||
|
||||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
Permanent target = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (target != null) {
|
||||
return true;
|
||||
} else {
|
||||
this.discard();
|
||||
}
|
||||
return false;
|
||||
return permanent.getId().equals(getTargetPointer().getFirst(game, source));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInactive(Ability source, Game game) {
|
||||
return getTargetPointer().getFirst(game, source) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue