- Added Rob's buyback code (includes Brush with Death).

This commit is contained in:
jendave
2011-08-06 03:35:40 +00:00
parent 3d36924bb5
commit c971e1ef9f
5 changed files with 50 additions and 1 deletions

View File

@@ -2993,6 +2993,20 @@ public class CardFactory implements NewConstants {
card.clearSpellAbility();
card.addSpellAbility(spLoseLife);
String bbCost = card.getSVar("Buyback");
if (!bbCost.equals(""))
{
SpellAbility bbLoseLife = spLoseLife.copy();
bbLoseLife.setManaCost(CardUtil.addManaCosts(card.getManaCost(), bbCost));
bbLoseLife.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.)");
bbLoseLife.setIsBuyBackAbility(true);
if (Tgt[0] == true)
bbLoseLife.setBeforePayMana(CardFactoryUtil.input_targetPlayer(bbLoseLife));
card.addSpellAbility(bbLoseLife);
}
}
}