## Activated ability for charger. Adjust animation length (cooldown) in endmo-bp/animations/player.json > animation.player.morph_charger_activated

effect @s resistance 22 0 true
effect @s speed 22 3 true

tag @e[r=2.5,family=mob] add ChargerSlowDamage
tag @e[r=2.5,family=goat] add ChargerSlowDamage
tag @e[r=2.5,family=fish] add ChargerSlowDamage
tag @e[r=2.5,family=panda] add ChargerSlowDamage
tag @e[r=2.5,family=piglin] add ChargerSlowDamage
tag @e[r=2.5,family=monster] add ChargerSlowDamage
tag @e[r=2.5,family=ender] add ChargerSlowDamage

execute as @s run damage @e[tag=ChargerSlowDamage] 4 entity_attack entity @s

tag @e[tag=ChargerSlowDamage] remove ChargerSlowDamage