From 01dfede9e918d721c00674cac3ead593bf16f4ae Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 20 Oct 2018 20:13:26 -0400 Subject: [PATCH] fixed Chance for Glory giving indestructible to noncreature permanents --- Mage.Sets/src/mage/cards/c/ChanceForGlory.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/c/ChanceForGlory.java b/Mage.Sets/src/mage/cards/c/ChanceForGlory.java index ab8c37fb8a..dff4e834e2 100644 --- a/Mage.Sets/src/mage/cards/c/ChanceForGlory.java +++ b/Mage.Sets/src/mage/cards/c/ChanceForGlory.java @@ -1,16 +1,17 @@ package mage.cards.c; -import java.util.UUID; -import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityAllEffect; import mage.abilities.effects.common.turn.AddExtraTurnControllerEffect; import mage.abilities.keyword.IndestructibleAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; +import mage.filter.StaticFilters; + +import java.util.UUID; /** - * * @author TheElk801 */ public final class ChanceForGlory extends CardImpl { @@ -19,9 +20,10 @@ public final class ChanceForGlory extends CardImpl { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}{W}"); // Creatures you control gain indestructible. Take an extra turn after this one. At the beginning of that turn's end step, you lose the game. - this.getSpellAbility().addEffect(new GainAbilityControlledEffect( - IndestructibleAbility.getInstance(), Duration.EndOfGame - ).setText("Creatures you control gain indestructible")); + this.getSpellAbility().addEffect(new GainAbilityAllEffect( + IndestructibleAbility.getInstance(), Duration.EndOfGame, + StaticFilters.FILTER_CONTROLLED_CREATURES + ).setText("Creatures you control gain indestructible.")); this.getSpellAbility().addEffect(new AddExtraTurnControllerEffect(true)); }