- Fixed the keyword "At the beginning of your upkeep, sacrifice CARDNAME unless you pay ..." broken by the brackets {}.

This commit is contained in:
Sloth
2014-01-19 11:16:54 +00:00
parent 0d354f679c
commit bd0dc07c43

View File

@@ -134,9 +134,10 @@ public class Upkeep extends Phase {
final StringBuilder sb = new StringBuilder("Sacrifice upkeep for " + c);
final String[] k = ability.split(" pay ");
final String cost = k[1].replaceAll("[{]", "").replaceAll("[}]", " ");
String effect = "AB$ Sacrifice | Cost$ 0 | SacValid$ Self"
+ "| UnlessPayer$ You | UnlessCost$ " + k[1];
+ "| UnlessPayer$ You | UnlessCost$ " + cost;
SpellAbility upkeepAbility = AbilityFactory.getAbility(effect, c);
upkeepAbility.setActivatingPlayer(controller);