#execute at @s[scores={AttackTimer=142..}] run execute as @e[type=armor_stand,tag=BoneBoi] run execute at @s run execute unless block ^ ^ ^1 air run kill @s
execute at @s run execute as @e[type=armor_stand,tag=BoneBoi,nbt={OnGround:1b}] run execute at @s run fill ~ ~ ~ ~ ~ ~ minecraft:gray_concrete_powder
execute at @s run execute as @e[type=armor_stand,tag=BoneBoi,nbt={OnGround:1b}] run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute at @s run summon minecraft:fireball ~ ~-1 ~ {CustomName:"\"i\"",ExplosionPower:2,power:[0.0,-1.0,0.0],direction:[0.0,-1.0,0.0]}
#/summon minecraft:fireball ~ ~-1 ~ {ExplosionPower:1,direction:[0.0,-1.0,0.0]}
execute as @a[tag=CadeyrnFightTag,gamemode=!spectator] run execute at @s run execute if entity @e[type=falling_block,tag=BoneBoiSand,distance=..1.5] run effect give @s instant_damage 1 2

execute at @s run execute as @e[type=armor_stand,tag=BoneBoi,nbt={OnGround:1b}] run execute at @s positioned ~ ~1 ~ run kill @e[type=falling_block,limit=1,sort=nearest,tag=BoneBoiSand]
#execute at @s run execute as @e[type=armor_stand,tag=BoneBoi,nbt={OnGround:1b}] run playsound minecraft:block.glass.break hostile @a[distance=..75] ~ ~ ~ 3 0.5 0.5
execute at @s run execute as @e[type=armor_stand,tag=BoneBoi,nbt={OnGround:1b}] run kill @s

execute at @s run execute as @a run execute at @s run execute if entity @e[type=armor_stand,tag=BoneBoi,distance=..3] run effect give @s instant_damage


execute unless entity @e[type=armor_stand,tag=BoneBoi] run scoreboard players set @s AttackTimer 200