execute at @s if entity @s[tag=parry] as @e[type=marker,tag=!shield_scroll,tag=!parry,tag=magic_proj,distance=..2] at @s run return run function pctf:logic/items/scrolls/parry
tag @s add check_collide_temp
execute at @s if entity @s[tag=!parry] as @e[type=marker,tag=!parry,tag=magic_proj,distance=0.1..1.5] unless score @s ctf_ID = @n[tag=check_collide_temp] ctf_ID if score @s size > @n[tag=check_collide_temp] size at @s run function pctf:logic/items/scrolls/collide
execute at @s if entity @s[tag=!parry] as @e[type=marker,tag=!parry,tag=magic_proj,distance=0.1..1.5] unless score @s ctf_ID = @n[tag=check_collide_temp] ctf_ID if score @s size = @n[tag=check_collide_temp] size as @e[type=marker,tag=!parry,tag=magic_proj,distance=..2] at @s run function pctf:logic/items/scrolls/collide_explode
tag @s remove check_collide_temp