Merge branch 'fix-rng' of https://github.com/DayKev/pokerogue into fix-rng

This commit is contained in:
NightKev 2024-09-03 00:46:59 -07:00
commit 01f2087211

View File

@ -2631,7 +2631,7 @@ export default class BattleScene extends SceneBase {
if (mods.length < 1) {
return mods;
}
const rand = Math.floor(Utils.randSeedInt(mods.length)); // Why is there a floor() call around a number that can only be an integer?
const rand = Utils.randSeedInt(mods.length);
return [mods[rand], ...shuffleModifiers(mods.filter((_, i) => i !== rand))];
};
modifiers = shuffleModifiers(modifiers);