diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-07-28 17:46:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 17:46:17 -0400 |
commit | e06de33cbdab8ca853bcdd1b4c8909a61aabfcef (patch) | |
tree | d8fc5465a98e738792297ab08ba7216b18696fec /src/battle_util.c | |
parent | 4a42e2a710ee550c88a56e48f436b88279337eea (diff) | |
parent | 96b904bf808805daa3de09080e10cc92e24c1f8e (diff) |
Merge branch 'master' into doc-overworld
Diffstat (limited to 'src/battle_util.c')
-rw-r--r-- | src/battle_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/battle_util.c b/src/battle_util.c index 9cc2252b6..89fe95fbc 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -259,7 +259,7 @@ void ResetSentPokesToOpponentValue(void) gSentPokesToOpponent[(i & BIT_FLANK) >> 1] = bits; } -void sub_803F9EC(u8 battler) +void OpponentSwitchInResetSentPokesToOpponentValue(u8 battler) { s32 i = 0; u32 bits = 0; @@ -279,11 +279,11 @@ void sub_803F9EC(u8 battler) } } -void sub_803FA70(u8 battler) +void UpdateSentPokesToOpponentValue(u8 battler) { if (GetBattlerSide(battler) == B_SIDE_OPPONENT) { - sub_803F9EC(battler); + OpponentSwitchInResetSentPokesToOpponentValue(battler); } else { @@ -1250,7 +1250,7 @@ bool8 HandleFaintedMonActions(void) gBattleStruct->faintedActionsState = 3; break; case 2: - sub_803F9EC(gBattlerFainted); + OpponentSwitchInResetSentPokesToOpponentValue(gBattlerFainted); if (++gBattleStruct->faintedActionsBattlerId == gBattlersCount) gBattleStruct->faintedActionsState = 3; else |