fn flags_for_child_profile( state: &CombatState, profile_spell_id: u32, inherited: DamageFlags, ) -> DamageFlags