execute if entity @s[scores={pierce=..0}] on passengers run kill @s
kill @s[scores={pierce=..0}]

$execute at @s positioned $(hitbox) if entity $(target)[type=#main:enemies,tag=enemy,tag=!fake,scores={$(id)_$(character)_$(type)_hit_cooldown=1..},$(dx)] run return fail

$execute at @s positioned $(hitbox) as $(target)[type=#main:enemies,tag=enemy,tag=!fake,$(dx)] at @s run function main:mechanics/projectile/projectile_hit_1 with storage projectile_data $(id)_$(character)_$(type)

$execute at @s run function main:$(folder_location)/projectile_hit_on with storage projectile_data $(id)_$(character)_$(type)

# scoreboard players remove @s pierce 1