mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09: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
|
@Override
|
||||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||||
Permanent target = game.getPermanent(getTargetPointer().getFirst(game, source));
|
return permanent.getId().equals(getTargetPointer().getFirst(game, source));
|
||||||
if (target != null) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
this.discard();
|
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
|
@Override
|
||||||
|
public boolean isInactive(Ability source, Game game) {
|
||||||
|
return getTargetPointer().getFirst(game, source) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue