
execute as @e[type=wither_skeleton,tag=jjc_wither_skeleton,nbt={HandItems:[{id:"minecraft:bow"}]},predicate=colosseum_of_fools:ss/target] at @s anchored eyes positioned ^ ^ ^ as @n[type=arrow,tag=!jjc_wither_skeleton_bow_detected,distance=..2,nbt=!{LeftOwner:1b,inGround:0b}] at @s on origin at @s[type=wither_skeleton,predicate=colosseum_of_fools:ss/target] anchored eyes positioned ^ ^ ^ run data merge entity @n[type=arrow,tag=!jjc_wither_skeleton_bow_detected,distance=..2,nbt=!{LeftOwner:1b}] {Fire:0s,item:{components:{"minecraft:intangible_projectile":{},"minecraft:potion_contents":{custom_effects:[{ambient:0b,duration:100,amplifier:0b,show_particles:1b,show_icon:1b,id:"minecraft:wither"}]}},count:1,id:"minecraft:tipped_arrow"}}
execute as @e[type=wither_skeleton,tag=jjc_wither_skeleton,nbt={HandItems:[{id:"minecraft:bow"}]},predicate=colosseum_of_fools:ss/target] at @s anchored eyes positioned ^ ^ ^ run tag @n[type=arrow,tag=!jjc_wither_skeleton_bow_detected,distance=..2,nbt=!{LeftOwner:1b}] add jjc_wither_skeleton_bow_detected
execute if entity @e[type=wither_skeleton,tag=jjc_wither_wizard,predicate=colosseum_of_fools:ss/player] run function colosseum_of_fools:ss/wither_skeleton/wither_wizard/1
execute if entity @e[type=wither_skeleton,tag=jjc_wither_warrior] run function colosseum_of_fools:ss/wither_skeleton/wither_warrior/1
execute if entity @e[type=wither_skeleton,tag=jjc_wither_lord] run function colosseum_of_fools:ss/wither_skeleton/wither_lord/0