mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
removed unnecessary card argument from various abilities
This commit is contained in:
parent
26ae7b7281
commit
69189e5a59
282 changed files with 294 additions and 299 deletions
|
|
@ -40,7 +40,7 @@ public class DashAbility extends StaticAbility implements AlternativeSourceCosts
|
|||
// needed to check activation status, if card changes zone after casting it
|
||||
private int zoneChangeCounter = 0;
|
||||
|
||||
public DashAbility(Card card, String manaString) {
|
||||
public DashAbility(String manaString) {
|
||||
super(Zone.ALL, null);
|
||||
name = KEYWORD;
|
||||
this.addDashCost(manaString);
|
||||
|
|
@ -53,7 +53,7 @@ public class DashAbility extends StaticAbility implements AlternativeSourceCosts
|
|||
|
||||
}
|
||||
|
||||
public DashAbility(final DashAbility ability) {
|
||||
private DashAbility(final DashAbility ability) {
|
||||
super(ability);
|
||||
this.alternativeSourceCosts.addAll(ability.alternativeSourceCosts);
|
||||
this.zoneChangeCounter = ability.zoneChangeCounter;
|
||||
|
|
|
|||
|
|
@ -53,11 +53,11 @@ public class MadnessAbility extends StaticAbility {
|
|||
|
||||
private final String rule;
|
||||
|
||||
public MadnessAbility(Card card, ManaCosts<ManaCost> madnessCost) {
|
||||
this(card, madnessCost, 0);
|
||||
public MadnessAbility(ManaCosts<ManaCost> madnessCost) {
|
||||
this(madnessCost, 0);
|
||||
}
|
||||
|
||||
public MadnessAbility(Card card, ManaCosts<ManaCost> madnessCost, int lifeCost) {
|
||||
public MadnessAbility(ManaCosts<ManaCost> madnessCost, int lifeCost) {
|
||||
super(Zone.HAND, new MadnessReplacementEffect(madnessCost, lifeCost));
|
||||
addSubAbility(new MadnessTriggeredAbility(madnessCost, lifeCost, getOriginalId()));
|
||||
|
||||
|
|
|
|||
|
|
@ -85,19 +85,19 @@ public class MorphAbility extends StaticAbility implements AlternativeSourceCost
|
|||
private int zoneChangeCounter = 0;
|
||||
private boolean megamorph;
|
||||
|
||||
public MorphAbility(Card card, Cost morphCost) {
|
||||
this(card, createCosts(morphCost));
|
||||
public MorphAbility(Cost morphCost) {
|
||||
this(createCosts(morphCost));
|
||||
}
|
||||
|
||||
public MorphAbility(Card card, Cost morphCost, boolean megamorph) {
|
||||
this(card, createCosts(morphCost), megamorph);
|
||||
public MorphAbility(Cost morphCost, boolean megamorph) {
|
||||
this(createCosts(morphCost), megamorph);
|
||||
}
|
||||
|
||||
public MorphAbility(Card card, Costs<Cost> morphCosts) {
|
||||
this(card, morphCosts, false);
|
||||
public MorphAbility(Costs<Cost> morphCosts) {
|
||||
this(morphCosts, false);
|
||||
}
|
||||
|
||||
public MorphAbility(Card card, Costs<Cost> morphCosts, boolean megamorph) {
|
||||
public MorphAbility(Costs<Cost> morphCosts, boolean megamorph) {
|
||||
super(Zone.HAND, null);
|
||||
this.morphCosts = morphCosts;
|
||||
this.megamorph = megamorph;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public class ReplicateAbility extends StaticAbility implements OptionalAdditiona
|
|||
+ " You may choose new targets for the copies.";
|
||||
protected OptionalAdditionalCost additionalCost;
|
||||
|
||||
public ReplicateAbility(Card card, String manaString) {
|
||||
public ReplicateAbility(String manaString) {
|
||||
super(Zone.STACK, null);
|
||||
this.additionalCost = new OptionalAdditionalCostImpl(keywordText,
|
||||
reminderTextMana, new ManaCostsImpl(manaString));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue