scoreboard players remove @s time_warp_delay 1

tag @s add checking_warps
execute as @e[type=marker,tag=time_warp_scroll] if score @s real_ID = @a[tag=checking_warps,sort=nearest,limit=1] real_ID run tag @s add checked_warp
execute store result score #warps temp if entity @e[type=marker,tag=time_warp_scroll,tag=checked_warp]
tag @e[type=marker,tag=time_warp_scroll,tag=checked_warp] remove checked_warp
tag @s remove checking_warps

execute if score #warps temp matches 0 run return 0

execute if score @s time_warp_delay matches 0 run function pctf:logic/items/scrolls/time_warp/summon