Document some battle_util.c
This commit is contained in:
+4
-4
@@ -259,7 +259,7 @@ void ResetSentPokesToOpponentValue(void)
|
||||
gSentPokesToOpponent[(i & BIT_FLANK) >> 1] = bits;
|
||||
}
|
||||
|
||||
void sub_803F9EC(u8 battler)
|
||||
void OpponentSwitchInResetSentPokesToOpponent(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);
|
||||
OpponentSwitchInResetSentPokesToOpponent(battler);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1250,7 +1250,7 @@ bool8 HandleFaintedMonActions(void)
|
||||
gBattleStruct->faintedActionsState = 3;
|
||||
break;
|
||||
case 2:
|
||||
sub_803F9EC(gBattlerFainted);
|
||||
OpponentSwitchInResetSentPokesToOpponent(gBattlerFainted);
|
||||
if (++gBattleStruct->faintedActionsBattlerId == gBattlersCount)
|
||||
gBattleStruct->faintedActionsState = 3;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user