mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09: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.Duration;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -62,6 +63,7 @@ public class LurkingArynx extends CardImpl {
|
||||||
new ManaCostsImpl("{2}{G}"),
|
new ManaCostsImpl("{2}{G}"),
|
||||||
FormidableCondition.getInstance());
|
FormidableCondition.getInstance());
|
||||||
ability.setAbilityWord(AbilityWord.FORMIDABLE);
|
ability.setAbilityWord(AbilityWord.FORMIDABLE);
|
||||||
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class MustBeBlockedByTargetSourceEffect extends RequirementEffect {
|
||||||
if (permanent.getId().equals(this.getTargetPointer().getFirst(game, source))) {
|
if (permanent.getId().equals(this.getTargetPointer().getFirst(game, source))) {
|
||||||
Permanent blocker = game.getPermanent(this.getTargetPointer().getFirst(game, source));
|
Permanent blocker = game.getPermanent(this.getTargetPointer().getFirst(game, source));
|
||||||
if (blocker != null && blocker.canBlock(source.getSourceId(), game)) {
|
if (blocker != null && blocker.canBlock(source.getSourceId(), game)) {
|
||||||
Permanent attacker = game.getPermanent(source.getSourceId());
|
Permanent attacker = (Permanent) source.getSourceObjectIfItStillExists(game);
|
||||||
if (attacker != null) {
|
if (attacker != null) {
|
||||||
BlockedAttackerWatcher blockedAttackerWatcher = (BlockedAttackerWatcher) game.getState().getWatchers().get("BlockedAttackerWatcher");
|
BlockedAttackerWatcher blockedAttackerWatcher = (BlockedAttackerWatcher) game.getState().getWatchers().get("BlockedAttackerWatcher");
|
||||||
if (blockedAttackerWatcher != null && blockedAttackerWatcher.creatureHasBlockedAttacker(attacker, blocker, game)) {
|
if (blockedAttackerWatcher != null && blockedAttackerWatcher.creatureHasBlockedAttacker(attacker, blocker, game)) {
|
||||||
|
@ -68,6 +68,8 @@ public class MustBeBlockedByTargetSourceEffect extends RequirementEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
discard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue