scoreboard players set @s cooldown 15

scoreboard players set @s ability_charge 0

effect give @e[distance=0.5..10,type=#cartographer_core:undead,type=!player] minecraft:instant_damage 1 2

effect give @e[distance=0.5..10,type=!#cartographer_core:undead,type=!player] minecraft:instant_health 1 2

execute as @e[distance=0.5..10,type=#cartographer_core:hostile] at @s run particle minecraft:heart ~ ~1 ~ 0.5 0.5 0.5 0.05 10

playsound minecraft:entity.zombie_villager.converted hostile @a[distance=..16] ~ ~ ~ 3 2

#Token Management. Remove the Token, set all nearby players token refresh on cooldown.
scoreboard players set @a[distance=..20] cooldown 4
tag @s remove tokened