@pkmn/randoms 0.5.5 → 0.5.6
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/gen5.js +1 -1
- package/build/gen5.js.map +1 -1
- package/build/gen6.js +1 -1
- package/build/gen6.js.map +1 -1
- package/build/gen7.js +1 -1
- package/build/gen7.js.map +1 -1
- package/build/gen8.js +2 -2
- package/build/gen8.js.map +1 -1
- package/package.json +2 -2
- package/src/gen5.ts +1 -1
- package/src/gen6.ts +1 -1
- package/src/gen7.ts +1 -1
- package/src/gen8.ts +2 -2
package/src/gen8.ts
CHANGED
|
@@ -1697,7 +1697,7 @@ export class RandomTeams {
|
|
|
1697
1697
|
this.dex.getEffectiveness('Rock', species) >= 2 &&
|
|
1698
1698
|
!isDoubles
|
|
1699
1699
|
);
|
|
1700
|
-
if (species.
|
|
1700
|
+
if (species.nfe && !HDBBetterThanEviolite) return 'Eviolite';
|
|
1701
1701
|
|
|
1702
1702
|
// Ability based logic and miscellaneous logic
|
|
1703
1703
|
if (species.name === 'Wobbuffet' || ['Cheek Pouch', 'Harvest', 'Ripen'].includes(ability)) return 'Sitrus Berry';
|
|
@@ -2303,7 +2303,7 @@ export class RandomTeams {
|
|
|
2303
2303
|
// Minimize confusion damage
|
|
2304
2304
|
const noAttackStatMoves = [...moves].every(m => {
|
|
2305
2305
|
const move = this.dex.moves.get(m);
|
|
2306
|
-
if (move.damageCallback || move.damage) return
|
|
2306
|
+
if (move.damageCallback || move.damage) return true;
|
|
2307
2307
|
return move.category !== 'Physical' || move.id === 'bodypress';
|
|
2308
2308
|
});
|
|
2309
2309
|
if (noAttackStatMoves && !moves.has('transform') && (!moves.has('shellsidearm') || !counter.get('Status'))) {
|