mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
* Sunburst Ability - Fixed reminder text.
This commit is contained in:
parent
66d1a66967
commit
212e53eb75
9 changed files with 18 additions and 12 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue