mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed BGM bug when ending surfing and immediately triggering a trainer battle with an intro BGM, fixed events making all other events check if they trigger after the event moves, fixed Neutralizing Gas triggering twice upon fainting
This commit is contained in:
@@ -65,8 +65,14 @@ def pbPlayTrainerIntroBGM(trainer_type)
|
||||
return if nil_or_empty?(trainer_type_data.intro_BGM)
|
||||
bgm = pbStringToAudioFile(trainer_type_data.intro_BGM)
|
||||
if !$game_temp.memorized_bgm
|
||||
$game_temp.memorized_bgm = $game_system.getPlayingBGM
|
||||
$game_temp.memorized_bgm_position = (Audio.bgm_pos rescue 0)
|
||||
if $game_temp.cue_bgm_delay
|
||||
$game_temp.cue_bgm_delay = nil
|
||||
$game_temp.memorized_bgm = $game_temp.cue_bgm
|
||||
$game_temp.memorized_bgm_position = 0
|
||||
else
|
||||
$game_temp.memorized_bgm = $game_system.getPlayingBGM
|
||||
$game_temp.memorized_bgm_position = (Audio.bgm_pos rescue 0)
|
||||
end
|
||||
end
|
||||
pbBGMPlay(bgm)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user