mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
Integrated GAME_STAT_ENTERED_BATTLE_TOWER bugfix from upstream
This commit is contained in:
parent
f21953f254
commit
1980a115b4
@ -424,9 +424,9 @@ BattleFrontier_BattleTowerLobby_EventScript_SaveBeforeLinkMultisChallenge::
|
|||||||
@ GAME_STAT_ENTERED_BATTLE_TOWER should not be incremented here, for two reasons:
|
@ 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
|
@ 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.
|
@ 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
|
incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
|
||||||
@.endif
|
.endif
|
||||||
specialvar VAR_RESULT, IsWirelessAdapterConnected
|
specialvar VAR_RESULT, IsWirelessAdapterConnected
|
||||||
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerLobby_EventScript_TryWirelessLink
|
goto_if_eq VAR_RESULT, TRUE, BattleFrontier_BattleTowerLobby_EventScript_TryWirelessLink
|
||||||
goto BattleFrontier_BattleTowerLobby_EventScript_TryCableLink
|
goto BattleFrontier_BattleTowerLobby_EventScript_TryCableLink
|
||||||
|
Loading…
Reference in New Issue
Block a user