- Replace isCurse parsing with a simple isCurse() function in AbilityFactory

- Tweaked AbilityCost toString function for Spells 
- Additional costs now displayed for Spells using AbilityFactory
- Buyback spells now alter the abCost value for Abilities generated by AbilityFactory.
This commit is contained in:
jendave
2011-08-06 09:02:12 +00:00
parent 6c8400eb1e
commit 4e6e113588
3 changed files with 12 additions and 13 deletions

View File

@@ -6121,7 +6121,10 @@ public class CardFactory implements NewConstants {
if (!bbCost.equals(""))
{
SpellAbility bbSA = sa.copy();
bbSA.setManaCost(CardUtil.addManaCosts(card.getManaCost(), bbCost));
String newCost = CardUtil.addManaCosts(card.getManaCost(), bbCost);
bbSA.setManaCost(newCost);
if (bbSA.payCosts != null)
bbSA.payCosts.setMana(newCost); // abCost value needs to be increased for paying spells
StringBuilder sb = new StringBuilder();
sb.append("Buyback ").append(bbCost).append(" (You may pay an additional ").append(bbCost);
sb.append(" as you cast this spell. If you do, put this card into your hand as it resolves.)");