mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Sunburst Ability - Fixed reminder text.
This commit is contained in:
parent
66d1a66967
commit
212e53eb75
9 changed files with 18 additions and 12 deletions
|
@ -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());
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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))));
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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)));
|
||||
|
|
|
@ -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))));
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue