scoreboard players set @s AttackTimer 0
data merge block ~ ~ ~ {auto:0b}
#kill @e[tag=CadeyrnMinion,type=vex]
tag @s remove MidAttack
tag @a remove PullMe
tp @e[type=pufferfish,tag=PufferPull] ~ ~-500 ~
kill @e[type=armor_stand,tag=CadChainPull]
advancement grant @a only minecraft:suhc/deflectfish
advancement grant @a only minecraft:suhc/deflectfishfail
item replace entity @s weapon.mainhand with golden_sword{Enchantments:[{id:"minecraft:sharpness",lvl:11s},{id:"minecraft:knockback",lvl:1s},{id:"minecraft:fire_aspect",lvl:2s}]} 1
data merge entity @s {NoAI:0,NoGravity:0,Invulnerable:0}
#reset pot
#execute at @e[name=DayQ,type=armor_stand] run data merge block 999991 137 999988 {auto:1b}

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