From 6b0115157be63494b3f3e518cb346114546f7a22 Mon Sep 17 00:00:00 2001 From: "Alex W. Jackson" Date: Tue, 15 Mar 2022 01:34:04 -0400 Subject: [PATCH] Fix other cards affected by #8769 --- .../src/mage/cards/a/AltarOfTheGoyf.java | 2 +- .../src/mage/cards/a/AngelicExaltation.java | 2 +- .../src/mage/cards/b/BattlegraceAngel.java | 2 +- .../mage/cards/s/SovereignsOfLostAlara.java | 25 +++++++++---------- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/AltarOfTheGoyf.java b/Mage.Sets/src/mage/cards/a/AltarOfTheGoyf.java index a590ba3de3..35d094861f 100644 --- a/Mage.Sets/src/mage/cards/a/AltarOfTheGoyf.java +++ b/Mage.Sets/src/mage/cards/a/AltarOfTheGoyf.java @@ -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( diff --git a/Mage.Sets/src/mage/cards/a/AngelicExaltation.java b/Mage.Sets/src/mage/cards/a/AngelicExaltation.java index ef1494214f..fa1459097c 100644 --- a/Mage.Sets/src/mage/cards/a/AngelicExaltation.java +++ b/Mage.Sets/src/mage/cards/a/AngelicExaltation.java @@ -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) { diff --git a/Mage.Sets/src/mage/cards/b/BattlegraceAngel.java b/Mage.Sets/src/mage/cards/b/BattlegraceAngel.java index 7d7c48646e..716eb9d1a3 100644 --- a/Mage.Sets/src/mage/cards/b/BattlegraceAngel.java +++ b/Mage.Sets/src/mage/cards/b/BattlegraceAngel.java @@ -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) { diff --git a/Mage.Sets/src/mage/cards/s/SovereignsOfLostAlara.java b/Mage.Sets/src/mage/cards/s/SovereignsOfLostAlara.java index 071bd68591..a615474118 100644 --- a/Mage.Sets/src/mage/cards/s/SovereignsOfLostAlara.java +++ b/Mage.Sets/src/mage/cards/s/SovereignsOfLostAlara.java @@ -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; }