# Next Sound
execute if predicate entity/hurt run playsound custom.frog.hurt hostile @a ~ ~ ~ 1 .7
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 unless predicate entity/hurt run function enemies:frog_king/sound

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

# Attacks
execute if entity @s[tag=spit_spin] run function bosses:frog_king/spit_spin/main
execute if entity @s[tag=call_frogs] run function bosses:frog_king/call_frogs/main
execute if entity @s[tag=jump] run function bosses:frog_king/jump/main
