From 2368606720bd71f8f32f85f15afdcc181bc2d9a0 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 8 Nov 2016 18:27:22 +0100 Subject: [PATCH] * Crumbling Vestige - Reverted the triggered ability back to a non mana ability. --- .../src/mage/cards/c/CrumblingVestige.java | 41 +------------------ 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/Mage.Sets/src/mage/cards/c/CrumblingVestige.java b/Mage.Sets/src/mage/cards/c/CrumblingVestige.java index 99074c3628..d6613e7d5c 100644 --- a/Mage.Sets/src/mage/cards/c/CrumblingVestige.java +++ b/Mage.Sets/src/mage/cards/c/CrumblingVestige.java @@ -28,18 +28,13 @@ package mage.cards.c; import java.util.UUID; -import mage.Mana; import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.effects.common.AddManaOfAnyColorEffect; -import mage.abilities.effects.common.ManaEffect; import mage.abilities.mana.ColorlessManaAbility; -import mage.abilities.mana.TriggeredManaAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; -import mage.constants.Zone; -import mage.game.Game; -import mage.game.events.GameEvent; /** * @@ -54,7 +49,7 @@ public class CrumblingVestige extends CardImpl { this.addAbility(new EntersBattlefieldTappedAbility()); // When Crumbling Vestige enters the battlefield, add one mana of any color to your mana pool. - this.addAbility(new CrumblingVestigeTriggeredManaAbility(new AddManaOfAnyColorEffect())); + this.addAbility(new EntersBattlefieldTriggeredAbility(new AddManaOfAnyColorEffect(), false)); // {T}: Add {C} to you mana pool. this.addAbility(new ColorlessManaAbility()); @@ -69,35 +64,3 @@ public class CrumblingVestige extends CardImpl { return new CrumblingVestige(this); } } - -class CrumblingVestigeTriggeredManaAbility extends TriggeredManaAbility { - - public CrumblingVestigeTriggeredManaAbility(ManaEffect effect) { - super(Zone.ALL, effect, false); - this.netMana.add(new Mana(0, 0, 0, 0, 0, 0, 1, 0)); - } - - public CrumblingVestigeTriggeredManaAbility(final CrumblingVestigeTriggeredManaAbility ability) { - super(ability); - } - - @Override - public boolean checkEventType(GameEvent event, Game game) { - return event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD; - } - - @Override - public boolean checkTrigger(GameEvent event, Game game) { - return event.getTargetId().equals(getSourceId()); - } - - @Override - public String getRule() { - return "When {this} enters the battlefield, " + super.getRule(); - } - - @Override - public CrumblingVestigeTriggeredManaAbility copy() { - return new CrumblingVestigeTriggeredManaAbility(this); - } -}