# Counter effect
scoreboard players remove @s dark_curse 1
tag @s[scores={dark_curse=0}] remove dark_curse
scoreboard players remove @s[scores={dark_curse=0}] n_effects 1

scoreboard players set @s[scores={dark_curse_2=0}] dark_curse_2 20
scoreboard players remove @s dark_curse_2 1

# Must be last
scoreboard players reset @s[scores={dark_curse=0}] dark_curse_2
scoreboard players reset @s[scores={dark_curse=0}] dark_curse


# Particles
execute unless predicate effects:is_baby run particle damage_indicator ~ ~.5 ~ .2 .1 .2 .0001 1 force
execute if predicate effects:is_baby run particle damage_indicator ~ ~ ~ .1 .1 .1 .0001 1 force

# Effect
execute if entity @s[scores={dark_curse_2=0}] run function effects:dark_curse/damage
