execute if score @s EB_next_attack matches -20 run effect give @s slowness 4 255 true
execute if score @s EB_next_attack matches -20 run scoreboard players set @s spit_spin 0
tp @s ~ ~ ~ ~7 ~
data modify entity @s Rotation[1] set value 0

execute if score @s EB_next_attack matches ..-26 run scoreboard players add @s spit_spin 1
execute if score @s EB_next_attack matches ..-26 run function attacks:spit_poison/summon
execute if score @s EB_next_attack matches ..-26 run scoreboard players set @s EB_next_attack -20

execute if score @s spit_spin matches 20.. run tag @s remove attacking
execute if score @s spit_spin matches 20.. run tag @s remove spit_spin
execute if score @s spit_spin matches 20.. run scoreboard players reset @s spit_spin
