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

execute if entity @s[tag=mGhost] run function bosses:pirate_captain/m_ghost/main
execute if entity @s[tag=mUndead] run function bosses:pirate_captain/m_undead/main
execute if entity @s[tag=shoot] run function bosses:pirate_captain/shoot/main
execute if entity @s[tag=cannon] run function bosses:pirate_captain/cannon/main
