scoreboard players add @s AttackTimer 1
execute at @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/basicfireball/fireballstart



execute at @s[scores={AttackTimer=1..45}] run execute as @e[type=armor_stand,tag=BasicFBallAS] run execute at @s run tp @s ^ ^ ^.3 ~ ~.14
execute at @s[scores={AttackTimer=46..60}] run execute as @e[type=armor_stand,tag=BasicFBallAS] run execute at @s run tp @s ^ ^ ^.23 ~ ~4

execute at @s[scores={AttackTimer=1..60}] run execute as @e[type=armor_stand,tag=BasicFBallAS] run execute at @s run particle minecraft:smoke ~ ~ ~ 0 0 0 0.05 25 force
execute at @s[scores={AttackTimer=61..70}] run execute as @e[type=armor_stand,tag=BasicFBallAS] run execute at @s run particle minecraft:smoke ~ ~ ~ 0 0 0 0.25 32 force
execute at @s[scores={AttackTimer=71..80}] run execute as @e[type=armor_stand,tag=BasicFBallAS] run execute at @s run particle minecraft:smoke ~ ~ ~ 0 0 0 0.45 40 force
execute at @s[scores={AttackTimer=80}] run execute if entity @a[distance=..100,tag=CadeyrnFightTag,gamemode=!spectator,tag=!ShotAtFBall] run function zzzzdonotuse:cadeyrn/attacks/basicfireball/summfireball

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

#execute as @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/skelefrombone/summonbonefinder