mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Update nature after applying optimizer (#2557)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
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.
This commit is contained in:
parent
f12dec091d
commit
7f4f9755e8
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user