
scoreboard players add @s AttackTimer 1


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

execute as @s[scores={AttackTimer=1..61}] run function zzzzdonotuse:cadeyrn/attacks/p2chargeslash/p2chargeslashmovemain

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


execute as @s[scores={AttackTimer=23..150}] run execute as @e[type=armor_stand,tag=P2SlashProj] run function zzzzdonotuse:cadeyrn/attacks/p2chargeslash/chargeprojectile
execute as @s[scores={AttackTimer=23..150}] run execute as @e[type=armor_stand,tag=P2SlashProj,limit=1] run tag @e[type=pufferfish,tag=CadPuffer,tag=GotTPTag] remove GotTPTag


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


#execute as @s[scores={AttackTimer=21}] run execute as @s run function zzzzdonotuse:cadeyrn/attacks/p2chargeslash/p2chargeslashlaunch

execute as @a[tag=CadeyrnFightTag] run execute at @s run execute if entity @e[type=falling_block,tag=DiePls,distance=..2] run effect give @s blindness 8 8
execute at @e[type=minecraft:falling_block,tag=DiePls] run particle minecraft:block gray_concrete_powder ~ ~ ~ 0 0.2 0 1 15 force
#execute as @s[scores={AttackTimer=36}] run execute as @s run function zzzzdonotuse:cadeyrn/attacks/p2chargeslash/p2chargeslashlaunch
#execute at @s[scores={AttackTimer=36..44}] run particle minecraft:smoke ~ ~ ~ 0.1 0.5 0.1 0.1 30 force
#execute at @s[scores={AttackTimer=36..50}] run execute positioned ~ ~1.5 ~ run effect give @a[distance=..2] levitation 1 25
#execute at @s[scores={AttackTimer=36..50}] run execute positioned ~ ~1.5 ~ run effect give @a[distance=..2] wither 15 0
#execute as @s[scores={AttackTimer=56..}] run function zzzzdonotuse:cadeyrn/attacks/p2chargeslash/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




