mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-17 03:02:39 +02:00
Merge pull request #955 from ShaneMcGovernIE/shanemcgovernie-issue-945-cannot-edit-trainer-class-s-battle-theme-ad701b
Honor trainer battleTheme override (fixes #945)
This commit is contained in:
@@ -764,8 +764,8 @@ function OverworldState:pushBattle(battle)
|
||||
local enemyLevel = battle.enemy and battle.enemy.mon and battle.enemy.mon.level or 0
|
||||
-- the battle theme starts with the wipe, not after it
|
||||
-- (audio/play_battle_music.asm runs before the transition)
|
||||
if battle.computeMusicKind then
|
||||
require("src.core.Music").playBattle(Game.data, battle:computeMusicKind())
|
||||
if battle.playBattleTheme then
|
||||
battle:playBattleTheme()
|
||||
end
|
||||
|
||||
-- The fade back in from white on the way out is BattleState:finish()'s
|
||||
|
||||
Reference in New Issue
Block a user