From 4bfdef5ecdad0f80b626f1a1b3c8bf3dcb967b80 Mon Sep 17 00:00:00 2001 From: cbt33 Date: Mon, 16 Sep 2013 12:25:44 -0400 Subject: [PATCH] Delete AvenShrine.java --- .../src/mage/sets/odyssey/AvenShrine.java | 77 ------------------- 1 file changed, 77 deletions(-) delete mode 100644 Mage.Sets/src/mage/sets/odyssey/AvenShrine.java diff --git a/Mage.Sets/src/mage/sets/odyssey/AvenShrine.java b/Mage.Sets/src/mage/sets/odyssey/AvenShrine.java deleted file mode 100644 index 7cc69c0ed16..00000000000 --- a/Mage.Sets/src/mage/sets/odyssey/AvenShrine.java +++ /dev/null @@ -1,77 +0,0 @@ -package mage.sets.odyssey - -import mage.card.CardImpl; -import mage.constants.Rarity; -import mage.constants.CardType; -import mage.abilities.TriggeredAbilityImpl; -import mage.abilities.common.GainLifeTargetEffect; -import mage.filter.FilterCard; -import mage.game.events.GameEvent; -import mage.game.stack.Spell; -import mage.target.targetpointer.FixedTarget; - - -import java.util.UUID - -public class AvenShrine extends CardImpl { - - public AvenShrine(ownerID UUID){ - super(ownerID, 9, "Aven Shrine", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}{W}"); - this.ExpansionSetCode = "ODY"; - this.color.setWhite(true); - - // Whenever a player casts a spell, that player gains X life, - // where X is the number of cards in all graveyards with the same name as that spell. - - this.addAbility = new AvenShrineAbility() ; - - } - - public AvenShrine(final AngelShrine card) { - super(card); - } - - @Override - public AvenShrine copy() { - return new AvenShrine(this); - } - - } - -public class AvenShrineAbility extends TriggeredAbilityImpl { - - - public AvenShrineAbility(){ - super(Zone.BATTLEFIELD, new GainLifeTargetEffect(new CardsInAllGraveyardCount(filter)), false); - } - - public AvenShrineAbility(final AvenShrineAbility ability) { - super(ability); - } - - @Override - public AvenShrineAbility copy() { - return new AngelsFeatherAbility(this); - } - - - public boolean checkTrigger(GameEvent event, Game game) { - if (event.GetType == EventType.SPELL_CAST) { - Spell spell = game.getStack().getSpell(event.getTargetID()) - String cardName = game.getStack().getSpell(event.getName()); - FilterCard filter = FilterCard(cardName); - if (CardsInAllGraveyardCount(filter) != 0) { - if (spell != null) { - for (Effect effect : this.getEffects()) { - effect.setTargetPointer(new FixedTarget(spell.getControllerId())); - } - return true; - } - } - return true; - } - return false; - } -} - -