mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Added support for restrictions in alternate costs (same as those of AbilityFactory).
- Added Lashknife.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user