scoreboard players set #bool bool_score 0
execute on attacker store result score #bool bool_score if entity @s[tag=clicked]

execute if score #bool bool_score matches 1 at @s as @n[tag=clicked] run function pctf:click_detect/stats/display

execute if score #bool bool_score matches 1 run data remove entity @s attack