mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Lurking Arynx - Fixed that the for the activated ability no target could be selected.
This commit is contained in:
parent
203b65c584
commit
3064a52fc8
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue