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) void BS_TryRevertWeatherForm(void)
{ {
NATIVE_ARGS(); NATIVE_ARGS();
if (B_WEATHER_FORM_SUPPRESS >= GEN_5 #if B_WEATHER_FORM_SUPPRESS >= GEN_5
&& TryBattleFormChange(gBattlerTarget, FORM_CHANGE_BATTLE_WEATHER)) if (TryBattleFormChange(gBattlerTarget, FORM_CHANGE_BATTLE_WEATHER))
{ {
gBattleScripting.battler = gBattlerTarget; gBattleScripting.battler = gBattlerTarget;
BattleScriptPush(cmd->nextInstr); BattleScriptPush(cmd->nextInstr);
gBattlescriptCurrInstr = BattleScript_TargetFormChangeWithStringNoPopup; gBattlescriptCurrInstr = BattleScript_TargetFormChangeWithStringNoPopup;
return; return;
} }
#endif
gBattlescriptCurrInstr = cmd->nextInstr; gBattlescriptCurrInstr = cmd->nextInstr;
} }