# --------- Next Sound ----------------
execute if predicate entity/hurt run playsound custom.frog.hurt hostile @a ~ ~ ~
execute if predicate entity/hurt run function 0_enemy_boss:sound_cooldown/reset_by_hurt

execute if score @s EB_next_sound matches ..0 run function 0_enemy_boss:sound_cooldown/generic
execute if score @s EB_next_sound matches 1 run playsound custom.frog.ambient hostile @a ~ ~ ~


# --------- Next Attack ----------------
execute if entity @s[scores={EB_next_attack=..0},tag=!attacking] run function enemies:frog/attk/next
execute if entity @s[tag=attacking,tag=!attk_choosen] run function enemies:frog/attk/choose

execute if entity @s[tag=spit,scores={EB_next_attack=-10}] run function enemies:frog/spit
