* Xathrid Gorgon - Fixed that it's activated ability was wrongly applied to all permanents.

This commit is contained in:
LevelX2 2014-12-02 07:21:20 +01:00
parent 6312649175
commit dc3b73e384

View file

@ -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