execute if score .stun boss matches ..0 run tag @s remove stun
execute if score .stop boss matches 1.. run scoreboard players remove .stop boss 1
execute if score .attack_is_playing boss matches 1.. run scoreboard players remove .attack_is_playing boss 1

execute if score .cooldown boss matches 1.. run scoreboard players remove .cooldown boss 1

execute if score .cooldown_shoot_rockets boss matches 1.. run scoreboard players remove .cooldown_shoot_rockets boss 1
execute if score .cooldown_shoot_gun boss matches 1.. run scoreboard players remove .cooldown_shoot_gun boss 1
execute if score .cooldown_shoot_more_gun boss matches 1.. run scoreboard players remove .cooldown_shoot_more_gun boss 1

execute if score .icicle_cooldown boss matches 1.. run scoreboard players remove .icicle_cooldown boss 1

execute if score .generator_cooldown boss matches 1.. unless entity @e[type=zombie,tag=id14_generator] run scoreboard players remove .generator_cooldown boss 1

execute if score .generator_alive boss matches 1.. unless entity @e[type=zombie,tag=id14_generator] run function main:game/mobs/ai/id/id14/stun