changed B_WEATHER_FORM_SUPPRESS config to preproc

This commit is contained in:
AgustinGDLV 2023-05-16 20:34:16 -07:00
parent b269cc6906
commit 7b08713707

View file

@ -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;
}