@pkmn/randoms 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -1
- package/build/index.mjs.map +1 -1
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -4110,7 +4110,7 @@ var RandomGen7Teams = class extends RandomGen8Teams {
|
|
|
4110
4110
|
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;
|
|
4111
4111
|
if (isMonotype) {
|
|
4112
4112
|
if (itemData.megaStone) {
|
|
4113
|
-
const megaSpecies = this.dex.species.get(
|
|
4113
|
+
const megaSpecies = this.dex.species.get(Object.values(itemData.megaStone)[0]);
|
|
4114
4114
|
if (types.length > megaSpecies.types.length) types = [species.types[0]];
|
|
4115
4115
|
if (megaSpecies.types[1] && types[1] && megaSpecies.types[1] !== types[1]) {
|
|
4116
4116
|
types = [megaSpecies.types[0]];
|