
scoreboard players add @s AttackTimer 1

execute as @s[scores={AttackTimer=1..5}] run execute at @s run tp @s ~ ~ ~ facing entity @p[tag=CadeyrnFightTag]

execute as @s[scores={AttackTimer=20..30}] run function zzzzdonotuse:cadeyrn/attacks/firewhip/firewhipmoveforwardmain
execute as @s[scores={AttackTimer=31..39}] run function zzzzdonotuse:cadeyrn/attacks/firewhip/firewhipmovebackwardmain
execute as @s[scores={AttackTimer=20..39}] run execute as @a[tag=CadeyrnFightTag,gamemode=!spectator] run execute at @s run execute if entity @e[type=armor_stand,tag=FireWhip2,distance=..2] run function zzzzdonotuse:cadeyrn/attacks/firewhip/hitplayer

execute as @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/firewhip/firewhipstart



execute as @s[scores={AttackTimer=40..}] run function zzzzdonotuse:cadeyrn/attacks/firewhip/reset

#execute at @s[scores={AttackTimer=200}] run kill @e[type=armor_stand,tag=FireLine]
#execute as @s[scores={AttackTimer=200}] run execute as @e[type=armor_stand,tag=FireLine] run function zzzzdonotuse:cadeyrn/attacks/firesheet/reset




