scoreboard players add @s AttackTimer 1
scoreboard players add @e[type=armor_stand,tag=SoulStealAS] DummyAttackTimer 1


execute at @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/soulstealstart

execute at @s[scores={AttackTimer=10}] run execute if entity @a[distance=..100,tag=CadeyrnFightTag,gamemode=!spectator,tag=!ShootSoul] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/soulstealsummonstand

execute at @s[scores={AttackTimer=1..15}] positioned ~ ~.75 ~.5 run particle minecraft:enchanted_hit ~ ~ ~ 0.2 1 0.2 0.5 51

execute at @s[scores={AttackTimer=1..50}] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/circlecadeyrnmain

execute at @s[scores={AttackTimer=50..59}] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/launchstands

execute at @s[scores={AttackTimer=53..}] run execute as @e[type=armor_stand,tag=SoulStealAS] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/movetowardsplayer

execute at @s[scores={AttackTimer=53..}] run execute if entity @e[type=armor_stand,tag=PlayerSoul] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/movesoul

execute at @s[scores={AttackTimer=200}] run kill @e[type=armor_stand,tag=SoulStealAS]

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