execute unless entity @s[gamemode=creative] unless items entity @s weapon.mainhand *[custom_data~{wizard_battle:1b}] run item modify entity @s weapon.mainhand pctf:remove1
execute if items entity @s weapon.mainhand *[custom_data~{wizard_battle:1b}] run scoreboard players add @s spell_cooldown2 10
execute anchored eyes run summon marker ^ ^ ^2 {Tags:["parry","magic_proj","check_proj","parry_scroll","new"],CustomName:'"parry_scroll"'}
tag @s add temp
execute as @n[tag=parry_scroll,tag=new] at @s rotated as @n[tag=temp] run tp @s ~ ~ ~ ~ ~
execute as @n[tag=parry_scroll,tag=new] run scoreboard players operation @s ctf_ID = @n[tag=temp] ctf_ID
execute as @n[tag=parry_scroll,tag=new] run scoreboard players operation @s real_ID = @n[tag=temp] real_ID
tag @s remove temp

tag @n[tag=new] remove new

playsound minecraft:entity.silverfish.hurt player @a ~ ~ ~ 2 0.75
playsound minecraft:entity.breeze.deflect player @a ~ ~ ~ 2 0.75

scoreboard players add @s spell_cooldown2 24