From 7f4f9755e8e2d324d7e2dec6140d7a9b679daf40 Mon Sep 17 00:00:00 2001 From: pyuk-bot <21160928+pyuk-bot@users.noreply.github.com> Date: Wed, 3 Dec 2025 06:34:43 -0600 Subject: [PATCH] Preact: Update nature after applying optimizer (#2557) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Untested, but I think it’s pretty obvious that this is why the optimizer isn’t changing nature currently when applied. The function above is basically the same function, but with this extra line. --- play.pokemonshowdown.com/src/battle-team-editor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/play.pokemonshowdown.com/src/battle-team-editor.tsx b/play.pokemonshowdown.com/src/battle-team-editor.tsx index 087f3cdff..f26b9907f 100644 --- a/play.pokemonshowdown.com/src/battle-team-editor.tsx +++ b/play.pokemonshowdown.com/src/battle-team-editor.tsx @@ -2633,6 +2633,7 @@ class StatForm extends preact.Component<{ set.evs = optimized.evs; this.plus = optimized.plus || null; this.minus = optimized.minus || null; + this.updateNatureFromPlusMinus(); this.props.onChange(); }; renderSpreadGuesser() {