Fix other cards affected by #8769

This commit is contained in:
Alex W. Jackson 2022-03-15 01:34:04 -04:00
parent 22e1cf4c88
commit 6b0115157b
4 changed files with 15 additions and 16 deletions

View file

@ -36,7 +36,7 @@ public final class AltarOfTheGoyf extends CardImpl {
CardTypesInGraveyardCount.ALL, CardTypesInGraveyardCount.ALL,
Duration.EndOfTurn, true Duration.EndOfTurn, true
).setText("it gets +X/+X until end of turn, where X is " + ).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. // Lhurgoyf creatures you control have trample.
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect( this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(

View file

@ -24,7 +24,7 @@ public final class AngelicExaltation extends CardImpl {
CreaturesYouControlCount.instance, CreaturesYouControlCount.instance,
CreaturesYouControlCount.instance, CreaturesYouControlCount.instance,
Duration.EndOfTurn, true 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) { private AngelicExaltation(final AngelicExaltation card) {

View file

@ -35,7 +35,7 @@ public final class BattlegraceAngel extends CardImpl {
// Whenever a creature you control attacks alone, it gains lifelink until end of turn. // Whenever a creature you control attacks alone, it gains lifelink until end of turn.
this.addAbility(new AttacksAloneControlledTriggeredAbility(new GainAbilityTargetEffect( this.addAbility(new AttacksAloneControlledTriggeredAbility(new GainAbilityTargetEffect(
LifelinkAbility.getInstance(), Duration.EndOfTurn 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) { public BattlegraceAngel(final BattlegraceAngel card) {

View file

@ -37,7 +37,7 @@ public final class SovereignsOfLostAlara extends CardImpl {
this.addAbility(new ExaltedAbility()); 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. // 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) { private SovereignsOfLostAlara(final SovereignsOfLostAlara card) {
@ -54,7 +54,7 @@ class SovereignsOfLostAlaraEffect extends OneShotEffect {
public SovereignsOfLostAlaraEffect() { public SovereignsOfLostAlaraEffect() {
super(Outcome.BoostCreature); 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) { public SovereignsOfLostAlaraEffect(final SovereignsOfLostAlaraEffect effect) {
@ -66,10 +66,9 @@ class SovereignsOfLostAlaraEffect extends OneShotEffect {
Player controller = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
Permanent attackingCreature = game.getPermanent(getTargetPointer().getFirst(game, source)); Permanent attackingCreature = game.getPermanent(getTargetPointer().getFirst(game, source));
if (controller != null && attackingCreature != null) { 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(SubType.AURA.getPredicate());
filter.add(new AuraCardCanAttachToPermanentId(attackingCreature.getId())); filter.add(new AuraCardCanAttachToPermanentId(attackingCreature.getId()));
if (controller.chooseUse(Outcome.Benefit, "Search your library?", source, game)) {
TargetCardInLibrary target = new TargetCardInLibrary(filter); TargetCardInLibrary target = new TargetCardInLibrary(filter);
target.setNotTarget(true); target.setNotTarget(true);
if (controller.searchLibrary(target, source, game)) { if (controller.searchLibrary(target, source, game)) {
@ -80,8 +79,8 @@ class SovereignsOfLostAlaraEffect extends OneShotEffect {
attackingCreature.addAttachment(aura.getId(), source, game); attackingCreature.addAttachment(aura.getId(), source, game);
} }
} }
}
controller.shuffleLibrary(source, game); controller.shuffleLibrary(source, game);
return true;
} }
return false; return false;
} }