execute as @e[type=#minecraft:hunter_projectiles,tag=hunter_rapid_shot_arrow_has_been_shot] at @s if entity @e[type=#enemy_mobs_only,distance=..3,limit=1,sort=nearest] run function kiwi2:upgrades/classes/hunter/rapid_shot_damage_near_mob with storage kiwi:hunter_rapid_shot_damage
execute as @e[type=#minecraft:hunter_projectiles,tag=hunter_rapid_shot_arrow_has_been_shot,nbt={inGround:1b}] at @s run kill @s