pub(crate) fn base_primary_spell_cost( state: &CombatState, buf: &DenseBuffer, spell: &SpellData, ) -> f64