mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added Rob's buyback code (includes Brush with Death).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user