mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Added Breaking Wave, Ghitu Fire, Mind Extraction, Rout, Saproling Symbiosis, and Twilight's Call
This commit is contained in:
@@ -57,6 +57,7 @@ import forge.card.cost.CostReveal;
|
||||
import forge.card.cost.CostSacrifice;
|
||||
import forge.card.cost.CostTapType;
|
||||
import forge.card.mana.ManaCost;
|
||||
import forge.card.mana.ManaCostBeingPaid;
|
||||
import forge.card.spellability.Ability;
|
||||
import forge.card.spellability.AbilityManaPart;
|
||||
import forge.card.spellability.AbilitySub;
|
||||
@@ -1211,6 +1212,22 @@ public final class GameActionUtil {
|
||||
newSA.setDescription(sa.getDescription() + " (by paying " + cost.toSimpleString() + " instead of its mana cost)");
|
||||
alternatives.add(newSA);
|
||||
}
|
||||
if (sa.isSpell() && keyword.equals("You may cast CARDNAME any time you could cast an instant if you pay 2 more to cast it.")) {
|
||||
final SpellAbility newSA = sa.copy();
|
||||
newSA.setBasicSpell(false);
|
||||
String cost = source.getManaCost().toString();
|
||||
ManaCostBeingPaid newCost = new ManaCostBeingPaid(cost);
|
||||
newCost.increaseColorlessMana(2);
|
||||
cost = newCost.toString();
|
||||
final Cost actualcost = new Cost(cost, false);
|
||||
newSA.setPayCosts(actualcost);
|
||||
SpellAbilityRestriction sar = new SpellAbilityRestriction();
|
||||
sar.setVariables(sa.getRestrictions());
|
||||
sar.setInstantSpeed(true);
|
||||
newSA.setRestrictions(sar);
|
||||
newSA.setDescription(sa.getDescription() + " (by paying " + actualcost.toSimpleString() + " instead of its mana cost)");
|
||||
alternatives.add(newSA);
|
||||
}
|
||||
}
|
||||
return alternatives;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user