pub fn parse_ability_cost(
_host: &Card,
params: &Params,
record_type: AbilityRecordType,
) -> Option<Cost>Expand description
Parse the cost of an ability from its parameters.
Mirrors Java’s AbilityFactory.parseAbilityCost(Card, MapOfParams, RecordType).
For AB$ (activated) and SP$ (spell) abilities, reads the Cost$ parameter and parses it into a Cost structure. Sub-abilities (DB$) have no cost.