
scoreboard players add @s AttackTimer 1

execute at @s[scores={AttackTimer=1..15}] run particle minecraft:crit ~ ~ ~ 0 0 0 0.15 10 force

execute as @s[scores={AttackTimer=5}] run effect clear @s minecraft:levitation

execute at @s[scores={AttackTimer=9}] run execute if entity @a[distance=..12,tag=CadeyrnFightTag,gamemode=!spectator] run execute as @s run function zzzzdonotuse:cadeyrn/resetaggro


execute as @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/fireline/firelinestart
execute at @s[scores={AttackTimer=1..30}] run execute as @e[type=armor_stand,tag=FireLine] run function zzzzdonotuse:cadeyrn/attacks/fireline/firelinemove

execute at @s[scores={AttackTimer=131..160}] run execute as @e[type=armor_stand,tag=FireLine] run function zzzzdonotuse:cadeyrn/attacks/fireline/firelinemoveback
#execute as @a[tag=CadeyrnFightTag,gamemode=!spectator] run execute at @s run execute if block ~ ~ ~ soul_fire run effect give @s wither 1 10

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



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




