scoreboard players reset @s shot_bow

execute if entity @s[team=red] as @n[type=arrow,tag=!added] run tag @s add red
execute if entity @s[team=blue] as @n[type=arrow,tag=!added] run tag @s add blue

execute if entity @s[tag=explosive_arrows] as @n[type=arrow,tag=!added] run tag @s add explosive

execute if score @s at_num matches 1.. run function pctf:fx/arrows/check

# execute as @n[type=arrow,tag=!added] run data merge entity @s {PierceLevel:1b}
execute as @n[type=arrow,tag=!added] run tag @s add added