mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-04 00:23:15 +01:00
optimize BS_GetBattlerSide
This commit is contained in:
parent
cd7abea6fe
commit
4b799f2571
@ -14841,12 +14841,7 @@ void BS_CheckParentalBondCounter(void)
|
||||
// 6 bytes long (callnative(5) + battler(1))
|
||||
void BS_GetBattlerSide(void)
|
||||
{
|
||||
u8 battler = gBattlescriptCurrInstr[5];
|
||||
if (GetBattlerSide(battler) == B_SIDE_PLAYER)
|
||||
gBattleCommunication[0] = B_SIDE_PLAYER;
|
||||
else
|
||||
gBattleCommunication[0] = B_SIDE_OPPONENT;
|
||||
|
||||
gBattleCommunication[0] = GetBattlerSide(gBattlescriptCurrInstr[5]);
|
||||
gBattlescriptCurrInstr += 6;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user