Fixed issue with falsy issue within condition to get a stat for IV scanner
This commit is contained in:
parent
0e6c2952ca
commit
58bf18af88
|
@ -226,7 +226,7 @@ export default class BattleMessageUiHandler extends MessageUiHandler {
|
||||||
highestIv = ivs[s];
|
highestIv = ivs[s];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (shownStat) {
|
if (shownStat !== null && shownStat !== undefined) {
|
||||||
shownStats.push(shownStat);
|
shownStats.push(shownStat);
|
||||||
statsPool.splice(statsPool.indexOf(shownStat), 1);
|
statsPool.splice(statsPool.indexOf(shownStat), 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue