* Sunburst Ability - Fixed reminder text.

This commit is contained in:
LevelX2 2013-06-20 16:51:29 +02:00
parent 66d1a66967
commit 212e53eb75
9 changed files with 18 additions and 12 deletions

View file

@ -56,7 +56,7 @@ public class BatonOfCourage extends CardImpl<BatonOfCourage> {
// Flash
this.addAbility(FlashAbility.getInstance());
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// Remove a charge counter from Baton of Courage: Target creature gets +1/+1 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 1, Duration.EndOfTurn), new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1)));
ability.addTarget(new TargetCreaturePermanent());

View file

@ -51,7 +51,7 @@ public class ClearwaterGoblet extends CardImpl<ClearwaterGoblet> {
this.expansionSetCode = "5DN";
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// At the beginning of your upkeep, you may gain life equal to the number of charge counters on Clearwater Goblet.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new GainLifeEffect(new CountersCount(CounterType.CHARGE)), TargetController.YOU, true));
}

View file

@ -58,7 +58,7 @@ public class EngineeredExplosives extends CardImpl<EngineeredExplosives> {
this.expansionSetCode = "5DN";
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// {2}, Sacrifice Engineered Explosives: Destroy each nonland permanent with converted mana cost equal to the number of charge counters on Engineered Explosives.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EngineeredExplosivesEffect(), new ManaCostsImpl("{2}"));
ability.addCost(new SacrificeSourceCost());

View file

@ -56,7 +56,7 @@ public class SawtoothThresher extends CardImpl<SawtoothThresher> {
this.toughness = new MageInt(1);
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// Remove two +1/+1 counters from Sawtooth Thresher: Sawtooth Thresher gets +4/+4 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, 4, Duration.EndOfTurn), new RemoveCountersSourceCost(CounterType.P1P1.createInstance(2))));
}

View file

@ -49,7 +49,7 @@ public class SkyreachManta extends CardImpl<SkyreachManta> {
this.toughness = new MageInt(0);
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// Flying
this.addAbility(FlyingAbility.getInstance());
}

View file

@ -57,7 +57,7 @@ public class EtchedOracle extends CardImpl<EtchedOracle> {
this.toughness = new MageInt(0);
// Sunburst (This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// {1}, Remove four +1/+1 counters from Etched Oracle: Target player draws three cards.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), new ManaCostsImpl("{1}"));
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(4)));

View file

@ -47,7 +47,7 @@ public class PentadPrism extends CardImpl<PentadPrism> {
this.expansionSetCode = "HOP";
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
// Remove a charge counter from Pentad Prism: Add one mana of any color to your mana pool.
this.addAbility(new AnyColorManaAbility(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1))));
}

View file

@ -48,7 +48,7 @@ public class SuntouchedMyr extends CardImpl<SuntouchedMyr> {
this.toughness = new MageInt(0);
// Sunburst
this.addAbility(new SunburstAbility());
this.addAbility(new SunburstAbility(this));
}
public SuntouchedMyr(final SuntouchedMyr card) {

View file

@ -33,6 +33,7 @@ import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.SunburstCount;
import mage.abilities.effects.OneShotEffect;
import mage.cards.Card;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.counters.Counter;
@ -49,12 +50,18 @@ import mage.players.Player;
public class SunburstAbility extends EntersBattlefieldAbility{
public SunburstAbility(){
private final static String ruleCreature ="Sunburst <i>(This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)</i>";
private final static String ruleNonCreature ="Sunburst <i>(This enters the battlefield with a charge counter on it for each color of mana spent to cast it.)</i>";
private boolean isCreature;
public SunburstAbility(Card card){
super(new SunburstEffect(),"");
isCreature = card.getCardType().contains(CardType.CREATURE);
}
public SunburstAbility(final SunburstAbility ability){
super(ability);
this.isCreature = ability.isCreature;
}
@ -65,7 +72,7 @@ public class SunburstAbility extends EntersBattlefieldAbility{
@Override
public String getRule() {
return "Sunburst <i>(This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)</i>";
return isCreature ? ruleCreature : ruleNonCreature;
}
@ -114,5 +121,4 @@ class SunburstEffect extends OneShotEffect<SunburstEffect> {
return new SunburstEffect(this);
}
}
}