VXAce Compatibility between MOG Battle HUD and Yanfly Change Party

Hello,
I am using this two scripts : MOG Battle HUD and Yanfly Change Party.
The first script allows to me customize the HUD during battle.
The second one allows me to change party members during combat.

However, when I change the active participants in combat during a battle, the HUD does not update.
Meaning that after switching from Character A to Character B, Character A's information like health bar are still showned, while character's B are not displayed.

Is there any way I can refresh the HUD at the end of script A in order to have the UI match the switched in character ?
Thank you
Hello,

I don't know if you've solved it, otherwise, if you put this below the scripts it should patch them:
Ruby:
class Scene_Battle < Scene_Base
  alias patch_mog_hud_command_party command_party
  def command_party
    patch_mog_hud_command_party
    @spriteset.refresh_battle_hud
  end
end #Scene_Battle
Note that there will be some small transition effect for the update if that is okay with you.
(alternatively, you could edit the command_party method in Yanfly's script to put the refresh_battle_hud earlier but it does not change much)

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-between-mog-battle-hud-and-yanfly-change-party.177845/