scoreboard players add @s[type=!player] svm_ep.lifetime 1



execute at @s[tag=svm_ep.aniti_arrow_impact2] as @e[tag=!svm_ep.permament_redirected,tag=!svm_ep.arrow_redirected,tag=svm_ep.can_redirect,distance=..3] run function svm_ep:fighting_style/redirect_arrow
execute at @s[tag=svm_ep.aniti_arrow_impact,tag=!svm_ep.aniti_arrow_impact2] as @e[tag=!svm_ep.permament_redirected,tag=!svm_ep.arrow_redirected,tag=svm_ep.can_redirect,distance=..1.5] run function svm_ep:fighting_style/redirect_arrow
#execute at @s[tag=svm_ep.gravity_user] as @e[tag=!svm_ep.permament_redirected,tag=svm_ep.can_redirect,distance=..4.5] run function svm_ep:fighting_style/redirect_arrow

#tag @e[distance=..6] remove svm_ep.can_redirect
kill @s[type=!player,scores={svm_ep.lifetime=6..}]