@pkmn/randoms 0.5.6 → 0.5.9

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/src/gen8.ts CHANGED
@@ -2033,7 +2033,7 @@ export class RandomTeams {
2033
2033
  // Genesect-Douse should never reject Techno Blast
2034
2034
  const moveIsRejectable = !(species.id === 'genesectdouse' && move.id === 'technoblast') && (
2035
2035
  move.category === 'Status' ||
2036
- !types.has(move.type) ||
2036
+ (!types.has(move.type) && move.id !== 'judgment') ||
2037
2037
  (isLowBP && !move.multihit && !abilities.has('Technician'))
2038
2038
  );
2039
2039
  // Setup-supported moves should only be rejected under specific circumstances
@@ -2043,6 +2043,7 @@ export class RandomTeams {
2043
2043
  (counter.get(counter.setupType) + counter.get('Status') > 3 && !counter.get('hazards')) ||
2044
2044
  (move.category !== counter.setupType && move.category !== 'Status')
2045
2045
  );
2046
+
2046
2047
  if (moveIsRejectable && (
2047
2048
  !cull && !isSetup && !move.weather && !move.stallingMove && notImportantSetup && !move.damage &&
2048
2049
  (isDoubles ? this.unrejectableMovesInDoubles(move) : this.unrejectableMovesInSingles(move))
@@ -2086,7 +2087,6 @@ export class RandomTeams {
2086
2087
  }
2087
2088
  }
2088
2089
 
2089
-
2090
2090
  // Remove rejected moves from the move list
2091
2091
  if (cull && movePool.length) {
2092
2092
  if (moveid.startsWith('hiddenpower')) hasHiddenPower = false;
@@ -2261,7 +2261,7 @@ export class RandomTeams {
2261
2261
  PUBL: 87,
2262
2262
  PU: 88, "(PU)": 88, NFE: 88,
2263
2263
  };
2264
- const customScale: {[k: string]: number} = {};
2264
+ const customScale: {[k: string]: number} = {delibird: 100, luvdisc: 100, spinda: 100, unown: 100};
2265
2265
 
2266
2266
  level = customScale[species.id] || tierScale[species.tier] || 80;
2267
2267
  // Arbitrary levelling base on data files (typically winrate-influenced)