scoreboard players add @e[tag=hitted,tag=hexblade,sort=nearest,limit=1] damage 200

tag @s add sof
execute as @e[tag=hexblade,tag=!hitted] if score @s hexblade = @e[tag=sof,limit=1] hexblade run function items:weapon/sword_of_fathoms/remove_hex
tag @s remove sof

tag @e[tag=hitted,sort=nearest,limit=1] add hexblade
scoreboard players operation @e[tag=hitted,sort=nearest,limit=1] hexblade = @s hexblade
