execute if entity @a[distance=..5] run scoreboard players set summon_cursed EB_generic 0
execute if entity @a[distance=..5] if entity @s[tag=cursed] run scoreboard players set summon_cursed EB_generic 1
execute if entity @a[distance=..5] run function enemies_py:mandragora
execute if entity @a[distance=..5] run kill @s
