diff --git a/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop.mcfunction b/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop.mcfunction index f4d9462f7..2639c6f79 100644 --- a/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop.mcfunction +++ b/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop.mcfunction @@ -9,7 +9,7 @@ function omegaflowey.entity:shared/run_as_active_player_or_spectator { command: 'execute unless entity @s[tag=omegaflowey.player.fighting_flowey] run \ function omegaflowey.entity:directorial/boss_fight/shared/stop/as_spectator' \ } -$execute as $(active_player_uuid) run function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player +$execute as $(active_player_uuid) at @s run function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player function omegaflowey.main:summit/room/cave/active_player_display/update_value with storage omegaflowey:bossfight # prompt next player in queue diff --git a/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop/as_active_player.mcfunction b/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop/as_active_player.mcfunction index a5bd9d52b..9d5b006e1 100644 --- a/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop/as_active_player.mcfunction +++ b/datapacks/omegaflowey/data/omegaflowey.entity/function/directorial/boss_fight/shared/stop/as_active_player.mcfunction @@ -12,3 +12,6 @@ execute \ function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player/modify_health_and_tags function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player/log_reason + +execute if score #omegaflowey.bossfight.stop_reason omegaflowey.global.flag matches 3 run \ + playsound omega-flowey:player.escaped player @s ~ ~ ~ 3 diff --git a/resourcepack/assets/omega-flowey/sounds.json b/resourcepack/assets/omega-flowey/sounds.json index 9d32b9c51..85a4a57fd 100644 --- a/resourcepack/assets/omega-flowey/sounds.json +++ b/resourcepack/assets/omega-flowey/sounds.json @@ -283,6 +283,13 @@ } ] }, + "player.escaped": { + "sounds": [ + { + "name": "omega-flowey:snd_escaped" + } + ] + }, "soul.heal": { "sounds": [ { diff --git a/resourcepack/assets/omega-flowey/sounds/snd_escaped.ogg b/resourcepack/assets/omega-flowey/sounds/snd_escaped.ogg new file mode 100644 index 000000000..edb015786 Binary files /dev/null and b/resourcepack/assets/omega-flowey/sounds/snd_escaped.ogg differ