mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fix other cards affected by #8769
This commit is contained in:
parent
22e1cf4c88
commit
6b0115157b
4 changed files with 15 additions and 16 deletions
|
@ -36,7 +36,7 @@ public final class AltarOfTheGoyf extends CardImpl {
|
|||
CardTypesInGraveyardCount.ALL,
|
||||
Duration.EndOfTurn, true
|
||||
).setText("it gets +X/+X until end of turn, where X is " +
|
||||
"the number of card types among cards in all graveyards.")).addHint(CardTypesInGraveyardHint.ALL));
|
||||
"the number of card types among cards in all graveyards."), true, false).addHint(CardTypesInGraveyardHint.ALL));
|
||||
|
||||
// Lhurgoyf creatures you control have trample.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
|
|
|
@ -24,7 +24,7 @@ public final class AngelicExaltation extends CardImpl {
|
|||
CreaturesYouControlCount.instance,
|
||||
CreaturesYouControlCount.instance,
|
||||
Duration.EndOfTurn, true
|
||||
).setText("it gets +X/+X until end of turn, where X is the number of creatures you control")).addHint(CreaturesYouControlHint.instance));
|
||||
).setText("it gets +X/+X until end of turn, where X is the number of creatures you control"), true, false).addHint(CreaturesYouControlHint.instance));
|
||||
}
|
||||
|
||||
private AngelicExaltation(final AngelicExaltation card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class BattlegraceAngel extends CardImpl {
|
|||
// Whenever a creature you control attacks alone, it gains lifelink until end of turn.
|
||||
this.addAbility(new AttacksAloneControlledTriggeredAbility(new GainAbilityTargetEffect(
|
||||
LifelinkAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("it gains lifelink until end of turn")));
|
||||
).setText("it gains lifelink until end of turn"), true, false));
|
||||
}
|
||||
|
||||
public BattlegraceAngel(final BattlegraceAngel card) {
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class SovereignsOfLostAlara extends CardImpl {
|
|||
this.addAbility(new ExaltedAbility());
|
||||
|
||||
// Whenever a creature you control attacks alone, you may search your library for an Aura card that could enchant that creature, put it onto the battlefield attached to that creature, then shuffle your library.
|
||||
this.addAbility(new AttacksAloneControlledTriggeredAbility(new SovereignsOfLostAlaraEffect()));
|
||||
this.addAbility(new AttacksAloneControlledTriggeredAbility(new SovereignsOfLostAlaraEffect(), true, true));
|
||||
}
|
||||
|
||||
private SovereignsOfLostAlara(final SovereignsOfLostAlara card) {
|
||||
|
@ -54,7 +54,7 @@ class SovereignsOfLostAlaraEffect extends OneShotEffect {
|
|||
|
||||
public SovereignsOfLostAlaraEffect() {
|
||||
super(Outcome.BoostCreature);
|
||||
staticText = "you may search your library for an Aura card that could enchant that creature, put it onto the battlefield attached to that creature, then shuffle";
|
||||
staticText = "search your library for an Aura card that could enchant that creature, put it onto the battlefield attached to that creature, then shuffle";
|
||||
}
|
||||
|
||||
public SovereignsOfLostAlaraEffect(final SovereignsOfLostAlaraEffect effect) {
|
||||
|
@ -66,22 +66,21 @@ class SovereignsOfLostAlaraEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Permanent attackingCreature = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (controller != null && attackingCreature != null) {
|
||||
FilterCard filter = new FilterCard("aura that could enchant the lone attacking creature");
|
||||
FilterCard filter = new FilterCard("Aura card that could enchant " + attackingCreature.getName());
|
||||
filter.add(SubType.AURA.getPredicate());
|
||||
filter.add(new AuraCardCanAttachToPermanentId(attackingCreature.getId()));
|
||||
if (controller.chooseUse(Outcome.Benefit, "Search your library?", source, game)) {
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
target.setNotTarget(true);
|
||||
if (controller.searchLibrary(target, source, game)) {
|
||||
if (target.getFirstTarget() != null) {
|
||||
Card aura = game.getCard(target.getFirstTarget());
|
||||
game.getState().setValue("attachTo:" + aura.getId(), attackingCreature);
|
||||
controller.moveCards(aura, Zone.BATTLEFIELD, source, game);
|
||||
attackingCreature.addAttachment(aura.getId(), source, game);
|
||||
}
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
target.setNotTarget(true);
|
||||
if (controller.searchLibrary(target, source, game)) {
|
||||
if (target.getFirstTarget() != null) {
|
||||
Card aura = game.getCard(target.getFirstTarget());
|
||||
game.getState().setValue("attachTo:" + aura.getId(), attackingCreature);
|
||||
controller.moveCards(aura, Zone.BATTLEFIELD, source, game);
|
||||
attackingCreature.addAttachment(aura.getId(), source, game);
|
||||
}
|
||||
}
|
||||
controller.shuffleLibrary(source, game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue