diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-10-08 10:38:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 10:38:29 -0400 |
commit | e26f9d10d7bebee5ea512fc4729ce6adafec66a0 (patch) | |
tree | b868ba0c0b0618c38064037d840c52971ca10111 /src/battle_tv.c | |
parent | 6012cf43cbfc27e37fedae41136e13a62ccdd61c (diff) | |
parent | 6e62c057f5123b458ebc7d74e60c7ce8fb32e980 (diff) |
Merge pull request #1509 from GriffinRichards/doc-sprman
Document remaining symbols in pokemon.c
Diffstat (limited to 'src/battle_tv.c')
-rw-r--r-- | src/battle_tv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/battle_tv.c b/src/battle_tv.c index ffdadb697..c78f1bff4 100644 --- a/src/battle_tv.c +++ b/src/battle_tv.c @@ -1130,11 +1130,11 @@ void TryPutLinkBattleTvShowOnAir(void) if (gBattleTypeFlags & BATTLE_TYPE_MULTI) { - if ((playerBestMonId < 3 && !GetLinkTrainerFlankId(gBattleScripting.multiplayerId)) - || (playerBestMonId >= 3 && GetLinkTrainerFlankId(gBattleScripting.multiplayerId))) + if ((playerBestMonId < MULTI_PARTY_SIZE && !GetLinkTrainerFlankId(gBattleScripting.multiplayerId)) + || (playerBestMonId >= MULTI_PARTY_SIZE && GetLinkTrainerFlankId(gBattleScripting.multiplayerId))) { - j = (opponentBestMonId < 3) ? 0 : 1; - PutBattleUpdateOnTheAir(sub_806EF84(j, gBattleScripting.multiplayerId), moveId, playerBestSpecies, opponentBestSpecies); + j = (opponentBestMonId < MULTI_PARTY_SIZE) ? FALSE : TRUE; + PutBattleUpdateOnTheAir(GetOpposingLinkMultiBattlerId(j, gBattleScripting.multiplayerId), moveId, playerBestSpecies, opponentBestSpecies); } } else |