- Added support for restrictions in alternate costs (same as those of AbilityFactory).

- Added Lashknife.
This commit is contained in:
Sloth
2011-08-27 10:11:38 +00:00
parent 5664e1ba2c
commit d4dc60d8c9
3 changed files with 17 additions and 0 deletions

View File

@@ -4489,6 +4489,11 @@ public class CardFactoryUtil {
sb.append("You may ").append(abCost.toStringAlt());
sb.append(" rather than pay ").append(card.getName()).append("'s mana cost.");
}
SpellAbility_Restriction restriction = new SpellAbility_Restriction();
restriction.setRestrictions(mapParams);
restriction.setZone(Constant.Zone.Hand);
altCostSA.setRestrictions(restriction);
altCostSA.setDescription(sb.toString());