Changed ScorchedRuins to use SimpleManaAbility instead of extending BasicManaAbility

This commit is contained in:
nickmyers 2015-02-20 16:34:37 -06:00
parent a8d6fa6c23
commit 33a1ab35a5

View file

@ -9,9 +9,9 @@ import java.util.UUID;
import mage.Mana;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.effects.common.BasicManaEffect;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.EnterBattlefieldPayCostOrPutGraveyardEffect;
import mage.abilities.mana.BasicManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
@ -41,7 +41,8 @@ public class ScorchedRuins extends CardImpl {
// owner's graveyard.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new EnterBattlefieldPayCostOrPutGraveyardEffect(new SacrificeTargetCost(new TargetControlledPermanent(2,2,filter,false)))));
// {tap}: Add {4} to your mana pool
this.addAbility(new ScorchedRuinsManaAbility());
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana(4), new TapSourceCost()));
}
public ScorchedRuins(final ScorchedRuins card) {
@ -54,21 +55,3 @@ public class ScorchedRuins extends CardImpl {
}
}
class ScorchedRuinsManaAbility extends BasicManaAbility {
public ScorchedRuinsManaAbility() {
super(new BasicManaEffect(new Mana(0,0,0,0,0,4,0)));
this.netMana.add(new Mana(0,0,0,0,0,4,0));
}
public ScorchedRuinsManaAbility(final ScorchedRuinsManaAbility ability) {
super(ability);
}
@Override
public ScorchedRuinsManaAbility copy() {
return new ScorchedRuinsManaAbility(this);
}
}