forked from External/mage
Remove superfluous addManaCost method (#11288)
* no need to specify mana cost, just add cost * handle all mana costs through addcost method only * eliminate another constructor * more constructor cleanup
This commit is contained in:
parent
4e2a5bd5a9
commit
d7afa37893
53 changed files with 153 additions and 338 deletions
|
|
@ -21,7 +21,7 @@ public class SurgeAbility extends SpellAbility {
|
|||
|
||||
public static final String SURGE_ACTIVATION_VALUE_KEY = "surgeActivation";
|
||||
|
||||
private String rule;
|
||||
private final String rule;
|
||||
|
||||
public SurgeAbility(Card card, String surgeCosts) {
|
||||
super(card.getSpellAbility());
|
||||
|
|
@ -32,7 +32,7 @@ public class SurgeAbility extends SpellAbility {
|
|||
|
||||
this.clearManaCosts();
|
||||
this.clearManaCostsToPay();
|
||||
this.addManaCost(new ManaCostsImpl<>(surgeCosts));
|
||||
this.addCost(new ManaCostsImpl<>(surgeCosts));
|
||||
|
||||
this.setRuleAtTheTop(true);
|
||||
this.rule = "Surge " + surgeCosts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue