Surge: don't use OptionalCost there

This commit is contained in:
Hanmac
2018-08-30 20:25:30 +02:00
parent b279ae0771
commit 73b94a63a5
3 changed files with 10 additions and 6 deletions

View File

@@ -4088,7 +4088,7 @@ public class CardFactoryUtil {
newSA.setPayCosts(surgeCost); newSA.setPayCosts(surgeCost);
newSA.setBasicSpell(false); newSA.setBasicSpell(false);
newSA.addOptionalCost(OptionalCost.Surge); newSA.setSurged(true);
String desc = "Surge " + surgeCost.toSimpleString() + " (" + inst.getReminderText() String desc = "Surge " + surgeCost.toSimpleString() + " (" + inst.getReminderText()
+ ")"; + ")";

View File

@@ -11,7 +11,6 @@ public enum OptionalCost {
Kicker1("Kicker"), Kicker1("Kicker"),
Kicker2("Kicker"), Kicker2("Kicker"),
Retrace("Retrace"), Retrace("Retrace"),
Surge("Surge"), // no real OptionalCost but used there
AltCost(""), // used by prowl AltCost(""), // used by prowl
Flash("Flash"), Flash("Flash"),
Generic("Generic"); // used by "Dragon Presence" and pseudo-kicker cards Generic("Generic"); // used by "Dragon Presence" and pseudo-kicker cards

View File

@@ -97,6 +97,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
private boolean cycling = false; private boolean cycling = false;
private boolean dash = false; private boolean dash = false;
private boolean evoke = false; private boolean evoke = false;
private boolean surge = false;
private boolean offering = false; private boolean offering = false;
private boolean emerge = false; private boolean emerge = false;
private boolean morphup = false; private boolean morphup = false;
@@ -510,10 +511,6 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
getMultiKickerManaCost() != null; getMultiKickerManaCost() != null;
} }
public boolean isSurged() {
return isOptionalCostPaid(OptionalCost.Surge);
}
public boolean isEntwine() { public boolean isEntwine() {
return isOptionalCostPaid(OptionalCost.Entwine); return isOptionalCostPaid(OptionalCost.Entwine);
} }
@@ -1072,6 +1069,14 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
evoke = isEvoke; evoke = isEvoke;
} }
public final boolean isSurged() {
return surge;
}
public final void setSurged(final boolean isSurge) {
surge = isSurge;
}
public CardCollection getTappedForConvoke() { public CardCollection getTappedForConvoke() {
return tappedForConvoke; return tappedForConvoke;
} }