execute as @e[type=ghast,tag=jjc_ghast_bomber_s] at @s run tag @n[distance=..200,type=fireball,tag=!jjc_ghast_bomber_j_detected] add jjc_ghast_bomber_j1
execute as @e[type=ghast,tag=jjc_ghast_bomber_s] at @s run summon fireball ^4 ^1 ^1 {Fire:10000s,NoGravity:1b,acceleration_power:0.15d,LeftOwner:0b,Tags:["jjc","jjc_ghast_bomber_j0","jjc_ghast_bomber_j_detected","jjc_ghast_j_detected"],Passengers:[{id:"marker",Tags:["jjc_ghast_fireball_m","jjc_ghast_fireball_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ghast_bomber_s] at @s run summon fireball ^-4 ^1 ^1 {Fire:10000s,NoGravity:1b,acceleration_power:0.15d,LeftOwner:0b,Tags:["jjc","jjc_ghast_bomber_j0","jjc_ghast_bomber_j_detected","jjc_ghast_j_detected"],Passengers:[{id:"marker",Tags:["jjc_ghast_fireball_m","jjc_ghast_fireball_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ghast_bomber_s] at @s as @n[distance=..200,type=fireball,tag=jjc_ghast_bomber_j1] at @s run summon fireball ~ ~ ~ {Fire:10000s,NoGravity:1b,acceleration_power:0.15d,LeftOwner:0b,Tags:["jjc","jjc_ghast_bomber_j0","jjc_ghast_bomber_j_detected","jjc_ghast_j_detected"],Passengers:[{id:"marker",Tags:["jjc_ghast_fireball_m","jjc_ghast_fireball_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ghast_bomber_s] at @s run scoreboard players operation @e[distance=..200,type=marker,tag=jjc_ghast_fireball_m0,sort=nearest,limit=3] jjc_damage = @s jjc_damage
execute as @e[type=fireball,tag=jjc_ghast_bomber_j0] at @s run data modify entity @s Motion set from entity @n[distance=..200,type=fireball,tag=jjc_ghast_bomber_j1] Motion
execute as @e[type=fireball,tag=jjc_ghast_bomber_j0] at @s run data modify entity @s Owner set from entity @n[distance=..200,type=fireball,tag=jjc_ghast_bomber_j1] Owner
tag @e[type=ghast,tag=jjc_ghast_bomber_s] remove jjc_ghast_bomber_s
tag @e[type=fireball,tag=jjc_ghast_bomber_j0] remove jjc_ghast_bomber_j0
tag @e[type=marker,tag=jjc_ghast_fireball_m0] remove jjc_ghast_fireball_m0
kill @e[type=fireball,tag=jjc_ghast_bomber_j1]