@pkmn/sim 0.5.1 → 0.5.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/config/formats.js +373 -289
- package/build/config/formats.js.map +1 -1
- package/build/data/abilities.js +5 -1
- package/build/data/abilities.js.map +1 -1
- package/build/data/aliases.js +2 -2
- package/build/data/aliases.js.map +1 -1
- package/build/data/formats-data.js +91 -92
- package/build/data/formats-data.js.map +1 -1
- package/build/data/items.js +5 -5
- package/build/data/items.js.map +1 -1
- package/build/data/learnsets.js +1 -1
- package/build/data/learnsets.js.map +1 -1
- package/build/data/mods/gen1/formats-data.js +190 -190
- package/build/data/mods/gen1/formats-data.js.map +1 -1
- package/build/data/mods/gen1/moves.js +1 -2
- package/build/data/mods/gen1/moves.js.map +1 -1
- package/build/data/mods/gen1/scripts.js +12 -0
- package/build/data/mods/gen1/scripts.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/gen3/formats-data.js +12 -12
- package/build/data/mods/gen3/formats-data.js.map +1 -1
- package/build/data/mods/gen4/moves.js +22 -0
- package/build/data/mods/gen4/moves.js.map +1 -1
- package/build/data/mods/gen5/formats-data.js +172 -155
- package/build/data/mods/gen5/formats-data.js.map +1 -1
- package/build/data/mods/gen6/formats-data.js +1 -1
- package/build/data/mods/gen7/formats-data.js +1 -1
- package/build/data/mods/gen7/formats-data.js.map +1 -1
- package/build/data/mods/gen7/moves.js +154 -0
- package/build/data/mods/gen7/moves.js.map +1 -1
- package/build/data/moves.js +47 -20
- package/build/data/moves.js.map +1 -1
- package/build/data/pokedex.js +3 -3
- package/build/data/pokedex.js.map +1 -1
- package/build/data/rulesets.js +48 -5
- package/build/data/rulesets.js.map +1 -1
- package/build/data/tags.d.ts +1 -0
- package/build/data/tags.js +4 -3
- package/build/data/tags.js.map +1 -1
- package/build/data/text/abilities.js +4 -4
- package/build/data/text/abilities.js.map +1 -1
- package/build/data/text/moves.js +19 -19
- package/build/data/text/moves.js.map +1 -1
- package/build/sim/battle-actions.js +12 -4
- package/build/sim/battle-actions.js.map +1 -1
- package/build/sim/dex-formats.d.ts +1 -0
- package/build/sim/dex-formats.js +3 -2
- package/build/sim/dex-formats.js.map +1 -1
- package/build/sim/exported-global-types.d.ts +1 -0
- package/build/sim/global-types.d.ts +1 -0
- package/build/sim/index.d.ts +1 -0
- package/build/sim/index.js +3 -1
- package/build/sim/index.js.map +1 -1
- package/build/sim/pokemon.js +1 -1
- package/build/sim/pokemon.js.map +1 -1
- package/build/sim/team-validator.js +16 -0
- package/build/sim/team-validator.js.map +1 -1
- package/config/formats.ts +379 -292
- package/data/abilities.ts +3 -1
- package/data/aliases.ts +2 -2
- package/data/formats-data.ts +91 -92
- package/data/items.ts +5 -5
- package/data/learnsets.ts +1 -1
- package/data/mods/gen1/formats-data.ts +190 -190
- package/data/mods/gen1/moves.ts +1 -2
- package/data/mods/gen1/scripts.ts +11 -0
- package/data/mods/gen2/formats-data.ts +2 -2
- package/data/mods/gen3/formats-data.ts +12 -12
- package/data/mods/gen4/moves.ts +21 -0
- package/data/mods/gen5/formats-data.ts +172 -155
- package/data/mods/gen6/formats-data.ts +1 -1
- package/data/mods/gen7/formats-data.ts +1 -1
- package/data/mods/gen7/moves.ts +150 -0
- package/data/moves.ts +46 -20
- package/data/pokedex.ts +3 -3
- package/data/rulesets.ts +44 -6
- package/data/tags.ts +6 -3
- package/data/text/abilities.ts +4 -4
- package/data/text/moves.ts +19 -19
- package/package.json +2 -2
- package/sim/battle-actions.ts +12 -4
- package/sim/dex-formats.ts +4 -1
- package/sim/exported-global-types.ts +1 -0
- package/sim/global-types.ts +1 -0
- package/sim/index.ts +1 -0
- package/sim/pokemon.ts +1 -1
- package/sim/team-validator.ts +15 -0
package/data/abilities.ts
CHANGED
|
@@ -2349,6 +2349,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
|
|
|
2349
2349
|
neutralizinggas: {
|
|
2350
2350
|
// Ability suppression implemented in sim/pokemon.ts:Pokemon#ignoringAbility
|
|
2351
2351
|
onPreStart(pokemon) {
|
|
2352
|
+
if (pokemon.transformed) return;
|
|
2352
2353
|
this.add('-ability', pokemon, 'Neutralizing Gas');
|
|
2353
2354
|
pokemon.abilityState.ending = false;
|
|
2354
2355
|
for (const target of this.getAllActive()) {
|
|
@@ -2362,6 +2363,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
|
|
|
2362
2363
|
}
|
|
2363
2364
|
},
|
|
2364
2365
|
onEnd(source) {
|
|
2366
|
+
if (source.transformed) return;
|
|
2365
2367
|
for (const pokemon of this.getAllActive()) {
|
|
2366
2368
|
if (pokemon !== source && pokemon.hasAbility('Neutralizing Gas')) {
|
|
2367
2369
|
return;
|
|
@@ -2523,7 +2525,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
|
|
|
2523
2525
|
parentalbond: {
|
|
2524
2526
|
onPrepareHit(source, target, move) {
|
|
2525
2527
|
if (move.category === 'Status' || move.selfdestruct || move.multihit) return;
|
|
2526
|
-
if (['endeavor', 'fling', 'iceball', 'rollout'].includes(move.id)) return;
|
|
2528
|
+
if (['dynamaxcannon', 'endeavor', 'fling', 'iceball', 'rollout'].includes(move.id)) return;
|
|
2527
2529
|
if (!move.flags['charge'] && !move.spreadHit && !move.isZ && !move.isMax) {
|
|
2528
2530
|
move.multihit = 2;
|
|
2529
2531
|
move.multihitType = 'parentalbond';
|
package/data/aliases.ts
CHANGED
|
@@ -67,8 +67,8 @@ export const Aliases: {[alias: string]: string} = {
|
|
|
67
67
|
gen6mono: "[Gen 6] Monotype",
|
|
68
68
|
gen6ag: "[Gen 6] Anything Goes",
|
|
69
69
|
crossevo: "[Gen 8] Cross Evolution",
|
|
70
|
-
omotm: "[Gen 8]
|
|
71
|
-
lcotm: "[Gen 8
|
|
70
|
+
omotm: "[Gen 8] Pokebilities",
|
|
71
|
+
lcotm: "[Gen 8] Camomons",
|
|
72
72
|
|
|
73
73
|
// mega evos
|
|
74
74
|
fabio: "Ampharos-Mega",
|