Hey Ludicious ! Awesome work. The script seems to have issues with your SOS Battles script.
When a new opponent joins the Battle, and therefore changes the battle from a 1v1 to a 1v2, Enhanced Battle UI seems to have some issues:
When you try to open the info UI outside the Move Menu:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: NoMethodError
Message: undefined method `visible=' for nil:NilClass
Backtrace:
[[DBK] Enhanced Battle UI] [000] Main.rb:109:in `block in pbHideInfoUI'
[[DBK] Enhanced Battle UI] [000] Main.rb:108:in `each'
[[DBK] Enhanced Battle UI] [000] Main.rb:108:in `pbHideInfoUI'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:10:in `pbToggleBattleInfo'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:285:in `block in pbCommandMenuEx'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:258:in `loop'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:258:in `pbCommandMenuEx'
003_Scene_ChooseCommands.rb:15:in `pbCommandMenu'
009_Battle_CommandPhase.rb:29:in `pbCommandMenu'
009_Battle_CommandPhase.rb:222:in `block (2 levels) in pbCommandPhaseLoop'
When you try to do so from inside the Moves Menu:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: NoMethodError
Message: undefined method `visible=' for nil:NilClass
Backtrace:
[[DBK] Enhanced Battle UI] [000] Main.rb:109:in `block in pbHideInfoUI'
[[DBK] Enhanced Battle UI] [000] Main.rb:108:in `each'
[[DBK] Enhanced Battle UI] [000] Main.rb:108:in `pbHideInfoUI'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:10:in `pbToggleBattleInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:207:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:217:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:168:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:168:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:243:in `pbFightMenu'
009_Battle_CommandPhase.rb:230:in `block (2 levels) in pbCommandPhaseLoop'
And when you try to use a move:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: NoMethodError
Message: undefined method `visible=' for nil:NilClass
Backtrace:
[[DBK] Enhanced Battle UI] [000] Main.rb:109:in `block in pbHideInfoUI'
[[DBK] Enhanced Battle UI] [000] Main.rb:108:in `each'
[[DBK] Enhanced Battle UI] [000] Main.rb:108:in `pbHideInfoUI'
[[DBK] Enhanced Battle UI] [000] Main.rb:176:in `pbFightMenu_Confirm'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:199:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:168:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:168:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:243:in `pbFightMenu'
009_Battle_CommandPhase.rb:230:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:221:in `loop'
From my tests, it doesn't happen if I launch a regular 1v2 fight from the Debug Menu, only when one side changes sizes mid-battle.