scoreboard players add @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=jjc_wither_warrior2] jjc_404 1

execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=10}] at @s on target run tag @s add jjc_t
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=10}] at @s facing entity @n[distance=..200,tag=jjc_t] feet run tp @s ~ ~ ~ ~ 0
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=10}] at @s store result score @s jjc_rot run data get entity @s Rotation[0] 100
tag @e[tag=jjc_t] remove jjc_t
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=1..20}] at @s run tp @s ~ ~ ~ ~ 30
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2] at @s run particle dust{color:[1,1,1],scale:1} ~ ~1 ~ 0.25 1 0.25 0 5 force
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2] at @s run particle minecraft:falling_dust{block_state:{Name:"minecraft:black_concrete_powder"}} ~ ~1 ~ 0.25 1 0.25 2 5
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=20}] at @s store result entity @s Rotation[0] float 0.01 run scoreboard players get @s jjc_rot
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=20}] at @s rotated ~ 0 run summon marker ^ ^ ^0.01 {Tags:["jjc_wither_warrior2m","jjc"]}
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=20}] at @s store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=20}] at @s store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=marker,tag=jjc_wither_warrior2m] at @s store result score @s jjc_x2 run data get entity @s Pos[0] 1000
execute as @e[type=marker,tag=jjc_wither_warrior2m] at @s store result score @s jjc_z2 run data get entity @s Pos[2] 1000
execute as @e[type=marker,tag=jjc_wither_warrior2m] at @s store result entity @n[distance=..200,type=wither_skeleton,tag=jjc_wither_warrior2] Motion[0] double 0.4 run scoreboard players operation @s jjc_x2 -= @n[distance=..200,type=wither_skeleton,tag=jjc_wither_warrior2] jjc_x1
execute as @e[type=marker,tag=jjc_wither_warrior2m] at @s store result entity @n[distance=..200,type=wither_skeleton,tag=jjc_wither_warrior2] Motion[2] double 0.4 run scoreboard players operation @s jjc_z2 -= @n[distance=..200,type=wither_skeleton,tag=jjc_wither_warrior2] jjc_z1
kill @e[type=marker,tag=jjc_wither_warrior2m]
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=20}] at @s run playsound entity.player.attack.sweep hostile @a[distance=..200] ~ ~1 ~ 2 0.5
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior2,scores={jjc_404=20..}] at @s positioned ~-0.75 ~ ~-0.75 as @e[nbt={attributes:[{}]},dx=0.5,dz=0.5,dy=1,type=!armor_stand,tag=!jjc_wither_warrior] at @s run function colosseum_of_fools:ss/wither_skeleton/wither_warrior/1d
tag @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=jjc_wither_warrior2,scores={jjc_404=30..}] add jjc_wither_warrior2_r
scoreboard players reset @e[type=wither_skeleton,tag=jjc_wither_warrior2_r] jjc_404
tag @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=jjc_wither_warrior2_r] remove jjc_wither_warrior2
tag @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=jjc_wither_warrior2_r] remove jjc_wither_warrior2_r