diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-02-15 20:44:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 20:44:57 -0500 |
commit | a4cd331634d1fcc5f7cb217c51c328c5769a9616 (patch) | |
tree | 7b610171c3d893d1cace513cf61e0b74014dbad2 /src/battle_main.c | |
parent | 34deceb13695e7b13a27ecb94666fc95d2ced550 (diff) | |
parent | fee980decd6dfd5dc98c15ba13c9ea8f7b597934 (diff) |
Merge branch 'master' into doc-ttower
Diffstat (limited to 'src/battle_main.c')
-rw-r--r-- | src/battle_main.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/battle_main.c b/src/battle_main.c index 17fbb58b4..faad8bafb 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -50,6 +50,7 @@ #include "cable_club.h" #include "constants/abilities.h" #include "constants/battle_move_effects.h" +#include "constants/battle_setup.h" #include "constants/hold_effects.h" #include "constants/items.h" #include "constants/moves.h" @@ -1151,9 +1152,9 @@ static void CB2_PreInitMultiBattle(void) { ++gBattleCommunication[MULTIUSE_STATE]; if (gWirelessCommType) - sub_800AB9C(); + PrepareSendLinkCmd2FFE_or_RfuCmd6600(); else - sub_800AAC0(); + Link_TryStartSend5FFF(); } break; case 3: @@ -3716,12 +3717,12 @@ static void HandleEndTurn_BattleLost(void) } else { - if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && ScrSpecial_GetTrainerBattleMode() == 9) + if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && ScrSpecial_GetTrainerBattleMode() == TRAINER_BATTLE_EARLY_RIVAL) { - if (sub_80803D8() & 1) - gBattleCommunication[MULTISTRING_CHOOSER] = 1; + if (GetRivalBattleFlags() & RIVAL_BATTLE_HEAL_AFTER) + gBattleCommunication[MULTISTRING_CHOOSER] = 1; // Dont do white out text else - gBattleCommunication[MULTISTRING_CHOOSER] = 2; + gBattleCommunication[MULTISTRING_CHOOSER] = 2; // Do white out text gBattlerAttacker = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT); } else |