execute as @e[type=spider,tag=fancy_nancy_particle] at @e[type=wolf,tag=fancy_nancy_ai] run teleport @s ~ ~ ~ ~ 0

execute as @e[type=wolf,tag=fancy_nancy_ai] at @s unless entity @e[type=#main:enemies,tag=enemy,distance=..2] run data modify entity @s AngryAt set from entity @n[type=#main:enemies,tag=enemy] UUID

execute if score .fancy_nancy_cooldown artifact matches 0 as @e[type=wolf,tag=fancy_nancy_ai] at @s if entity @e[type=#main:enemies,tag=enemy,distance=..2] run function main:mechanics/artifacts/id/purple/id19/attack

execute if score .fancy_nancy_cooldown artifact matches 1.. run scoreboard players remove .fancy_nancy_cooldown artifact 1