From 7b087137072c220e06a5f11ffe59b3f3c6bfe5fd Mon Sep 17 00:00:00 2001 From: AgustinGDLV Date: Tue, 16 May 2023 20:34:16 -0700 Subject: [PATCH] changed B_WEATHER_FORM_SUPPRESS config to preproc --- src/battle_script_commands.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index cfb8c59651..c85446a343 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -16605,14 +16605,15 @@ void BS_ItemRestorePP(void) void BS_TryRevertWeatherForm(void) { NATIVE_ARGS(); - if (B_WEATHER_FORM_SUPPRESS >= GEN_5 - && TryBattleFormChange(gBattlerTarget, FORM_CHANGE_BATTLE_WEATHER)) +#if B_WEATHER_FORM_SUPPRESS >= GEN_5 + if (TryBattleFormChange(gBattlerTarget, FORM_CHANGE_BATTLE_WEATHER)) { gBattleScripting.battler = gBattlerTarget; BattleScriptPush(cmd->nextInstr); gBattlescriptCurrInstr = BattleScript_TargetFormChangeWithStringNoPopup; return; } +#endif gBattlescriptCurrInstr = cmd->nextInstr; }