* Lurking Arynx - Fixed that the for the activated ability no target could be selected.

This commit is contained in:
LevelX2 2015-04-12 23:39:52 +02:00
parent 203b65c584
commit 3064a52fc8
2 changed files with 5 additions and 1 deletions

View file

@ -40,6 +40,7 @@ import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.target.common.TargetCreaturePermanent;
/**
*
@ -62,6 +63,7 @@ public class LurkingArynx extends CardImpl {
new ManaCostsImpl("{2}{G}"),
FormidableCondition.getInstance());
ability.setAbilityWord(AbilityWord.FORMIDABLE);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -60,7 +60,7 @@ public class MustBeBlockedByTargetSourceEffect extends RequirementEffect {
if (permanent.getId().equals(this.getTargetPointer().getFirst(game, source))) {
Permanent blocker = game.getPermanent(this.getTargetPointer().getFirst(game, source));
if (blocker != null && blocker.canBlock(source.getSourceId(), game)) {
Permanent attacker = game.getPermanent(source.getSourceId());
Permanent attacker = (Permanent) source.getSourceObjectIfItStillExists(game);
if (attacker != null) {
BlockedAttackerWatcher blockedAttackerWatcher = (BlockedAttackerWatcher) game.getState().getWatchers().get("BlockedAttackerWatcher");
if (blockedAttackerWatcher != null && blockedAttackerWatcher.creatureHasBlockedAttacker(attacker, blocker, game)) {
@ -68,6 +68,8 @@ public class MustBeBlockedByTargetSourceEffect extends RequirementEffect {
return false;
}
return true;
} else {
discard();
}
}
}