From 1980a115b4d66f7bf9f4325b05b6f7877276806f Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Thu, 6 Jul 2023 13:07:03 -0400 Subject: [PATCH] Integrated GAME_STAT_ENTERED_BATTLE_TOWER bugfix from upstream --- data/maps/BattleFrontier_BattleTowerLobby/scripts.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc b/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc index bc7b6709f..8d60105bd 100644 --- a/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc +++ b/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc @@ -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