execute if score @s rapid_shot_cooldown matches 0 if entity @s[nbt={Inventory:[{id:"minecraft:arrow"}]}] run tag @s add rapid_shot_available
execute store result score @s hunter_rapid_shot_ammo_conservation_roll run random value 1..100
execute unless entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"minecraft:infinity":1}}}}}] if score @s hunter_rapid_shot_ammo_conservation_roll > @s hunter_rapid_shot_ammo_conservation_chance run clear @s arrow 1
execute if entity @s[tag=rapid_shot_available] store result score @s rapid_shot_cooldown run scoreboard players get @s rapid_shot_cooldown_length
execute if entity @s[tag=rapid_shot_available] anchored eyes positioned ^ ^-0.2 ^ summon arrow rotated as @p[tag=hunter_quick_shot_active] run function kiwi2:upgrades/classes/hunter/rapid_shot_launch_logic
execute store result storage kiwi:hunter_rapid_shot_damage x float 0.5 run data get storage kiwi:hunter_mastery_level_current x 1
tag @s remove rapid_shot_available
advancement revoke @s only kiwi2:hunter_stance_interaction_lc
advancement revoke @s only kiwi2:hunter_stance_interaction_rc