hi hi hi hi so Egg just added support to inverse battles, could you support those in the modification you shared here?
https://www.pokecommunity.com/showthread.php?p=10167016#post10167016
This is the commit that added support for inverse battles:
https://github.com/DizzyEggg/pokeemerald/commit/14daa9f4a5055bfeeb139e14a5abad9f4425d90e
I made it work adding that extra table and wrapping the entire fuction with === if (B_FLAG_INVERSE_BATTLE != 0 && FlagGet(B_FLAG_INVERSE_BATTLE)) { ==== and I'm sure that's the worst solution lol