From 1ffd060a70c19efe6dc6c279274257ea8abc2f28 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Sun, 20 Jan 2013 19:21:46 -0600 Subject: [PATCH] - Fixed Bruna, Light of Alabaster. --- .../avacynrestored/BrunaLightOfAlabaster.java | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/Mage.Sets/src/mage/sets/avacynrestored/BrunaLightOfAlabaster.java b/Mage.Sets/src/mage/sets/avacynrestored/BrunaLightOfAlabaster.java index 569447b9b2..a6a0deb1d0 100644 --- a/Mage.Sets/src/mage/sets/avacynrestored/BrunaLightOfAlabaster.java +++ b/Mage.Sets/src/mage/sets/avacynrestored/BrunaLightOfAlabaster.java @@ -49,16 +49,15 @@ import mage.target.Target; import mage.target.TargetCard; import mage.target.TargetPermanent; import java.util.UUID; -import mage.filter.predicate.other.CardCanTargetPermanentId; -import mage.filter.predicate.other.PermanentCanTargetPermanentId; - +import mage.filter.predicate.other.AuraCardCanAttachToPermanentId; +import mage.filter.predicate.other.AuraPermanentCanAttachToPermanentId; /** * @author noxx */ public class BrunaLightOfAlabaster extends CardImpl { public BrunaLightOfAlabaster(UUID ownerId) { - super(ownerId, 208, "Bruna, Light of Alabaster", Rarity.MYTHIC, new CardType[]{CardType.CREATURE}, "{3}{W}{W}{U}"); + super(ownerId, 208, "Bruna, Light of Alabaster", Rarity.MYTHIC, new CardType[]{CardType.CREATURE}, "{W}{W}{U}"); this.expansionSetCode = "AVR"; this.supertype.add("Legendary"); this.subtype.add("Angel"); @@ -87,16 +86,6 @@ public class BrunaLightOfAlabaster extends CardImpl { class BrunaLightOfAlabasterEffect extends OneShotEffect { - private static final FilterPermanent filterAura = new FilterPermanent("Aura"); - private static final FilterCard filterAuraCard = new FilterCard("Aura card"); - - static { - filterAura.add(new CardTypePredicate(CardType.ENCHANTMENT)); - filterAura.add(new SubtypePredicate("Aura")); - filterAuraCard.add(new CardTypePredicate(CardType.ENCHANTMENT)); - filterAuraCard.add(new SubtypePredicate("Aura")); - } - public BrunaLightOfAlabasterEffect() { super(Constants.Outcome.Benefit); this.staticText = "attach to it any number of Auras on the battlefield and you may put onto the battlefield attached to it any number of Aura cards that could enchant it from your graveyard and/or hand"; @@ -113,7 +102,19 @@ class BrunaLightOfAlabasterEffect extends OneShotEffect 0 && player.chooseUse(Constants.Outcome.Benefit, "Attach an Aura from your hand?", game)) { - filterAuraCard.add(new CardCanTargetPermanentId(permanent.getId())); TargetCard targetAura = new TargetCard(Constants.Zone.PICK, filterAuraCard); if (player.choose(Constants.Outcome.Benefit, player.getHand(), targetAura, game)) { Card aura = game.getCard(targetAura.getFirstTarget()); @@ -154,7 +153,6 @@ class BrunaLightOfAlabasterEffect extends OneShotEffect 0 && player.chooseUse(Constants.Outcome.Benefit, "Attach an Aura from your graveyard?", game)) { - filterAuraCard.add(new CardCanTargetPermanentId(permanent.getId())); TargetCard targetAura = new TargetCard(Constants.Zone.PICK, filterAuraCard); if (player.choose(Constants.Outcome.Benefit, player.getGraveyard(), targetAura, game)) { Card aura = game.getCard(targetAura.getFirstTarget());