effect give @e[type=stray,tag=CadeyrnTP] resistance 6 6
execute at @s run particle minecraft:smoke ~ ~ ~ 0 1 0 0.1 4 force
execute at @s[scores={AttackTimer=466..530}] run execute at @e[type=stray,tag=CadeyrnTP] run summon lightning_bolt
execute at @s[scores={AttackTimer=535}] run execute as @e[type=stray,tag=CadeyrnTP,limit=1,sort=nearest] run function zzzzdonotuse:cadeyrn/attacks/deathanim/byebyecadeyrn
execute at @s[scores={AttackTimer=466..535}] run execute at @e[type=stray,tag=CadeyrnTP] run particle minecraft:cloud ~ ~ ~ 0.2 1 0.2 0.25 20 force
execute at @s[scores={AttackTimer=496..535}] run execute at @e[type=stray,tag=CadeyrnTP] run particle minecraft:cloud ~ ~ ~ 0.2 1 0.2 0.12 20 force
execute at @s[scores={AttackTimer=516..565}] run execute at @e[type=stray,tag=CadeyrnTP] run particle minecraft:cloud ~ ~ ~ 0.2 1 0.2 0.05 20 force


execute at @s[scores={AttackTimer=470}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/replacehand
execute at @s[scores={AttackTimer=570}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/dovinestands
execute at @s[scores={AttackTimer=570..620}] run execute at @e[type=armor_stand,tag=DeathAVineStand] run fill ~ ~ ~ ~ ~ ~ warped_stem destroy
execute at @s[scores={AttackTimer=570..620}] run execute as @e[type=armor_stand,tag=DeathAVineStand] run execute at @s run tp @s ~ ~1 ~
execute at @s[scores={AttackTimer=570..620}] run execute as @e[type=armor_stand,tag=DeathAVineStand] run execute at @s positioned ~ 155 ~ run kill @s[dy=5]

execute at @s[scores={AttackTimer=621..635}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/dorewardsroom

execute as @s[scores={AttackTimer=645}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/reset
