From 0c3feda6dd54faa231924b08cb5ceff6aac99d43 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Thu, 4 Aug 2011 18:11:10 +0400 Subject: [PATCH] Refactored Eldrazi Temple --- .../sets/riseoftheeldrazi/EldraziTemple.java | 49 ++++++++++++------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/Mage.Sets/src/mage/sets/riseoftheeldrazi/EldraziTemple.java b/Mage.Sets/src/mage/sets/riseoftheeldrazi/EldraziTemple.java index ff83f8b69e..43eb4eaa07 100644 --- a/Mage.Sets/src/mage/sets/riseoftheeldrazi/EldraziTemple.java +++ b/Mage.Sets/src/mage/sets/riseoftheeldrazi/EldraziTemple.java @@ -28,22 +28,25 @@ package mage.sets.riseoftheeldrazi; import java.util.UUID; + +import mage.ConditionalMana; +import mage.Constants; import mage.Constants.CardType; import mage.Constants.Rarity; import mage.MageObject; import mage.Mana; +import mage.abilities.Ability; +import mage.abilities.condition.Condition; import mage.abilities.effects.common.BasicManaEffect; import mage.abilities.mana.BasicManaAbility; import mage.abilities.mana.ColorlessManaAbility; +import mage.cards.Card; import mage.cards.CardImpl; import mage.game.Game; -import mage.game.stack.Spell; -import mage.game.stack.SpellStack; -import mage.game.stack.StackObject; /** * - * @author Loki + * @author Loki, nantuko */ public class EldraziTemple extends CardImpl { @@ -67,11 +70,8 @@ public class EldraziTemple extends CardImpl { class EldraziTempleManaAbility extends BasicManaAbility { - private static final String abilityText = "Spend this mana only to cast colorless Eldrazi spells or activate abilities of colorless Eldrazi. " - + "(Mage Tip: This ability can only be activated when an Eldrazi spell or ability is on the stack.)"; - EldraziTempleManaAbility ( ) { - super(new BasicManaEffect(Mana.ColorlessMana(2))); + super(new BasicManaEffect(new EldraziConditionalMana())); this.netMana.setColorless(2); } @@ -79,10 +79,10 @@ class EldraziTempleManaAbility extends BasicManaAbility