summon marker ~ ~1.6 ~ {Tags:["magic_proj","check_proj","shadow_burst_scroll","new"],CustomName:'"shadow_burst_scroll"'}
tag @s add temp
$execute as @n[tag=shadow_burst_scroll,tag=new] at @s rotated as @n[tag=temp] run tp @s ~ ~ ~ ~$(x) ~$(y)
execute as @n[tag=shadow_burst_scroll,tag=new] run scoreboard players operation @s ctf_ID = @n[tag=temp] ctf_ID
execute as @n[tag=shadow_burst_scroll,tag=new] run scoreboard players operation @s real_ID = @n[tag=temp] real_ID
execute as @n[tag=shadow_burst_scroll,tag=new] run scoreboard players set @s size 1
execute as @n[tag=shadow_burst_scroll,tag=new] store result score @s generic_timer_max run scoreboard players set @s generic_timer 3
tag @s remove temp

tag @n[tag=new] remove new

scoreboard players remove #shadow_burst temp 1
execute if score #shadow_burst temp matches 1.. run function pctf:logic/items/scrolls/shadow_burst/start_proj