@pkmn/sim 0.5.27 → 0.6.1
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/README.md +3 -2
- package/build/config/formats.js +26 -33
- package/build/config/formats.js.map +1 -1
- package/build/data/abilities.js +6 -4
- package/build/data/abilities.js.map +1 -1
- package/build/data/items.js +5 -5
- package/build/data/items.js.map +1 -1
- package/build/data/learnsets.js +3 -8
- package/build/data/learnsets.js.map +1 -1
- package/build/data/mods/gen2/formats-data.js +2 -2
- package/build/data/mods/gen2/formats-data.js.map +1 -1
- package/build/data/mods/gen5/formats-data.js +69 -69
- package/build/data/mods/gen5/formats-data.js.map +1 -1
- package/build/data/pokedex.js +6 -6
- package/build/data/pokedex.js.map +1 -1
- package/build/data/text/items.js +5 -5
- package/build/sim/battle.js +2 -2
- package/build/sim/battle.js.map +1 -1
- package/build/sim/dex.js +2 -2
- package/build/sim/dex.js.map +1 -1
- package/config/formats.ts +27 -34
- package/data/abilities.ts +6 -4
- package/data/items.ts +5 -5
- package/data/learnsets.ts +3 -8
- package/data/mods/gen2/formats-data.ts +2 -2
- package/data/mods/gen5/formats-data.ts +69 -69
- package/data/pokedex.ts +6 -6
- package/data/text/items.ts +5 -5
- package/package.json +3 -3
- package/sim/battle.ts +2 -2
- package/sim/dex.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pkmn/sim",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "An automatically generated extraction of just the simulator portion of Pokémon Showdown",
|
|
5
5
|
"homepage": "https://psim.us",
|
|
6
6
|
"main": "build/sim/index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"sim"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pkmn/sets": "^
|
|
30
|
+
"@pkmn/sets": "^4.0.0",
|
|
31
31
|
"@pkmn/streams": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"mocha": "^10.
|
|
34
|
+
"mocha": "^10.1.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"compile": "tsc -p .",
|
package/sim/battle.ts
CHANGED
|
@@ -1829,8 +1829,8 @@ export class Battle {
|
|
|
1829
1829
|
break;
|
|
1830
1830
|
}
|
|
1831
1831
|
this.runEvent('AfterEachBoost', target, source, effect, currentBoost);
|
|
1832
|
-
} else if (effect
|
|
1833
|
-
if (isSecondary) this.add(msg, target, boostName, boostBy);
|
|
1832
|
+
} else if (effect?.effectType === 'Ability') {
|
|
1833
|
+
if (isSecondary || isSelf) this.add(msg, target, boostName, boostBy);
|
|
1834
1834
|
} else if (!isSecondary && !isSelf) {
|
|
1835
1835
|
this.add(msg, target, boostName, boostBy);
|
|
1836
1836
|
}
|