Fixed issue with falsy issue within condition to get a stat for IV scanner

This commit is contained in:
Opaque02 2024-08-18 15:39:08 +10:00
parent 0e6c2952ca
commit 58bf18af88

View File

@ -226,7 +226,7 @@ export default class BattleMessageUiHandler extends MessageUiHandler {
highestIv = ivs[s];
}
});
if (shownStat) {
if (shownStat !== null && shownStat !== undefined) {
shownStats.push(shownStat);
statsPool.splice(statsPool.indexOf(shownStat), 1);
}