Skip to content

Commit

Permalink
Integrated GAME_STAT_ENTERED_BATTLE_TOWER bugfix from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Jul 6, 2023
1 parent f21953f commit 1980a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ BattleFrontier_BattleTowerLobby_EventScript_SaveBeforeLinkMultisChallenge::
@ GAME_STAT_ENTERED_BATTLE_TOWER should not be incremented here, for two reasons:
@ 1. It is incremented again in BattleFrontier_BattleTowerLobby_EventScript_CableLinkSuccessful or BattleFrontier_BattleTowerLobby_EventScript_WirelessLinkSuccessful
@ 2. If the player tries to save, but fails, the counter will still be incremented even if the player never enters the tower.
@.ifndef BUGFIX
.ifndef BUGFIX
incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
@.endif
.endif
specialvar VAR_RESULT, IsWirelessAdapterConnected
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerLobby_EventScript_TryWirelessLink
goto BattleFrontier_BattleTowerLobby_EventScript_TryCableLink
Expand Down

0 comments on commit 1980a11

Please sign in to comment.