- Added Breaking Wave, Ghitu Fire, Mind Extraction, Rout, Saproling Symbiosis, and Twilight's Call

This commit is contained in:
swordshine
2013-05-04 11:51:15 +00:00
parent 221c9ebd33
commit 1277a5b8e2
8 changed files with 78 additions and 0 deletions

View File

@@ -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;
}