#effect give @e[distance=..1,type=#suhc:hostiles] wither 5 5
execute as @e[distance=..1.75,tag=CadeyrnTP,tag=FightStart,tag=!BloodBolted] run function zzzzdonotuse:weapons/bloodbolthitcadeyrn
execute as @e[distance=..1.75,tag=CadeyrnTP,tag=!FightStart] run tag @s add BloodBolted

execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result score @s KyuTempScore run data get entity @s Health 1000
execute at @s[tag=SuperBB3] positioned ~ ~-.35 ~ run execute at @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] run summon lightning_bolt ~ ~-10 ~
execute at @s run execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] run kill @s[scores={KyuTempScore=1..5000}]
execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] run scoreboard players remove @s[scores={KyuTempScore=5001..}] KyuTempScore 5000
#execute at @s[tag=SuperBB3] positioned ~ ~-.35 ~ run execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] run scoreboard players remove @s[scores={KyuTempScore=1001..}] KyuTempScore 1000
execute at @s[tag=SuperBB3] positioned ~ ~-.35 ~ run execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand] run kill @s[scores={KyuTempScore=1..1000}]
execute at @s[tag=SuperBB3] positioned ~ ~-10.35 ~ run execute at @e[distance=..2.5,type=lightning_bolt,tag=!Strucken] positioned ~ ~10 ~ run execute as @e[distance=..2.5,type=!item,type=!player,type=!armor_stand] run scoreboard players remove @s[scores={KyuTempScore=5001..}] KyuTempScore 5000
execute at @s[tag=SuperBB3] positioned ~ ~-10.35 ~ run execute at @e[distance=..2.5,type=lightning_bolt,tag=!Strucken] positioned ~ ~10 ~ run execute as @e[distance=..2.5,type=!item,type=!player,type=!armor_stand] run data merge entity @s {Fire:20}
execute at @s[tag=SuperBB3] run tag @e[type=lightning_bolt,sort=nearest,distance=..2.5] add Strucken

execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result entity @s Health float .001 run scoreboard players get @s KyuTempScore




#execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result score @s KyuTempScore run data get entity @s Attributes[0].Base 9500
#execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result entity @s Attributes[0].Base double .0001 run scoreboard players get @s KyuTempScore

execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result score @s KyuTempScore run data get entity @s Attributes[1].Base 9500
execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result entity @s Attributes[1].Base double .0001 run scoreboard players get @s KyuTempScore

execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result score @s KyuTempScore run data get entity @s Attributes[2].Base 9500
execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result entity @s Attributes[2].Base double .0001 run scoreboard players get @s KyuTempScore

execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result score @s KyuTempScore run data get entity @s Attributes[3].Base 9500
execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result entity @s Attributes[3].Base double .0001 run scoreboard players get @s KyuTempScore

execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result score @s KyuTempScore run data get entity @s Attributes[7].Base 9500
execute as @e[distance=..1.75,type=!item,type=!player,type=!armor_stand,tag=!BloodBolted] store result entity @s Attributes[7].Base double .0001 run scoreboard players get @s KyuTempScore
tag @e[distance=..1.75,type=!item,type=!player,type=!armor_stand] add BloodBolted
execute at @e[name=DayQ,type=armor_stand] run data merge block 999991 121 999979 {auto:1b}