scoreboard players add @s mob_first_skill_counter 1

execute if entity @a[nbt={HurtTime:1s},distance=..3] run function kiwi2:custom_mobs_fx/ghoul/ghoul_lifesteal
execute if score @s mob_first_skill_counter matches 150 run effect give @s speed 3 2 true
execute if score @s mob_first_skill_counter matches 150 run particle cloud ~ ~ ~ 0.5 0.2 0.5 0.2 20
execute if score @s mob_first_skill_counter matches 150 run playsound entity.bat.takeoff hostile @a[distance=..25] ~ ~ ~ 1 0.75
execute if score @s mob_first_skill_counter matches 150.. run scoreboard players reset @s mob_first_skill_counter