tag @p[tag=togp] add attacking
tag @p[tag=togp] remove togp
title @p[tag=attacking] actionbar "BZZZZZ BZZ BZZ BZ BZZZZZZZZZ!!"
execute as @e[tag=tog] run function template:tower_of_gray/animations/area_slashes/play
execute at @p[tag=attacking] run tp @e[tag=tog] ^ ^ ^ facing entity @p[tag=attacking] feet
execute as @s at @p[tag=attacking] as @e[tag=!attacking,distance=..5] at @s run damage @s 3 minecraft:generic
execute at @p[tag=attacking] run kill @e[distance=..6,type=arrow]
execute at @p[tag=attacking] run particle minecraft:campfire_signal_smoke ~ ~ ~ 1 1 1 1 5 normal
schedule function template:tower_of_gray/settle 10t