- Minor edit to spBounceTgt. Added a space between buyback cost and the description. Used StringBuilder to build the spell description.

This commit is contained in:
jendave
2011-08-06 06:01:46 +00:00
parent f83eac5125
commit 8aa89ff8db

View File

@@ -2706,14 +2706,18 @@ public class CardFactory implements NewConstants {
{ {
SpellAbility bbBnceTgt = spBnceTgt.copy(); SpellAbility bbBnceTgt = spBnceTgt.copy();
bbBnceTgt.setManaCost(CardUtil.addManaCosts(card.getManaCost(), bbCost)); bbBnceTgt.setManaCost(CardUtil.addManaCosts(card.getManaCost(), bbCost));
bbBnceTgt.setDescription("Buyback " + bbCost + "(You may pay an additional " + bbCost + " as you cast this spell. If you do, put this card into your hand as it resolves.)");
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.)");
bbBnceTgt.setDescription(sb.toString());
// bbBnceTgt.setDescription("Buyback " + bbCost + "(You may pay an additional " + bbCost + " as you cast this spell. If you do, put this card into your hand as it resolves.)");
bbBnceTgt.setIsBuyBackAbility(true); bbBnceTgt.setIsBuyBackAbility(true);
bbBnceTgt.setBeforePayMana(CardFactoryUtil.input_targetValid(bbBnceTgt, Tgts, Selec[0])); bbBnceTgt.setBeforePayMana(CardFactoryUtil.input_targetValid(bbBnceTgt, Tgts, Selec[0]));
card.addSpellAbility(bbBnceTgt); card.addSpellAbility(bbBnceTgt);
} }
}//spBounceTgt }//spBounceTgt
// Generic bounce all card // Generic bounce all card