pub(crate) fn effective_optional_spell_cost(
view: &CombatView<'_>,
spell_id: u32,
base_optional_cost: f64,
pool: ResourcePool,
) -> f64pub(crate) fn effective_optional_spell_cost(
view: &CombatView<'_>,
spell_id: u32,
base_optional_cost: f64,
pool: ResourcePool,
) -> f64