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
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
package mage.abilities.abilityword;
|
||||
|
||||
import mage.abilities.ActivatedAbilityImpl;
|
||||
|
|
@ -18,11 +16,8 @@ import mage.target.common.TargetCardInHand;
|
|||
|
||||
public class GrandeurAbility extends ActivatedAbilityImpl {
|
||||
|
||||
protected final String cardName;
|
||||
|
||||
public GrandeurAbility(Effect effect, String cardName) {
|
||||
super(Zone.BATTLEFIELD, effect);
|
||||
this.cardName = cardName;
|
||||
super(Zone.BATTLEFIELD, effect, null);
|
||||
|
||||
FilterCard filter = new FilterCard("another card named " + cardName);
|
||||
filter.add(new NamePredicate(cardName));
|
||||
|
|
@ -33,7 +28,6 @@ public class GrandeurAbility extends ActivatedAbilityImpl {
|
|||
|
||||
protected GrandeurAbility(final GrandeurAbility ability) {
|
||||
super(ability);
|
||||
this.cardName = ability.cardName;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue