execute if entity @s[tag=tutorial_obj] run summon area_effect_cloud ~ ~4 ~ {Tags:["boss_warp","unspellable","tutorial_obj"],Duration:2147483647}
execute if entity @s[tag=!tutorial_obj] run summon area_effect_cloud ~ ~4 ~ {Tags:["boss_warp","unspellable"],Duration:2147483647}
playsound custom.portal.spawn ambient @a ~ ~ ~ 2.5

bossbar set boss visible false

tellraw @a ["",{"text":"\n[!] ","color":"gold","bold":true},{"translate":"floor","color":"gray"},{"text":" "},{"score":{"name":"floor","objective":"dungeon"},"color":"gray"},{"text":" "},{"translate":"msg.boss_defeated","color":"gray"}]

execute if score room_hits game matches ..1 run function game:room/5_room_end/boss/place_holder

execute if score floor dungeon matches 1.. if score active shop matches 1 at @e[tag=boss_holder_marker,limit=1] run function game:room/5_room_end/boss/drop_coins
