@pkmn/sim 0.5.14 → 0.5.15
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 +146 -135
- package/build/config/formats.js.map +1 -1
- package/build/data/aliases.js +2 -2
- package/build/data/aliases.js.map +1 -1
- package/build/data/conditions.js +4 -1
- package/build/data/conditions.js.map +1 -1
- package/build/data/formats-data.js +2 -2
- package/build/data/formats-data.js.map +1 -1
- package/build/data/items.js +4 -2
- package/build/data/items.js.map +1 -1
- package/build/data/learnsets.js +5 -4
- package/build/data/learnsets.js.map +1 -1
- package/build/data/mods/gen1/scripts.js +1 -1
- package/build/data/mods/gen1/scripts.js.map +1 -1
- package/build/data/mods/gen2/items.js +28 -0
- package/build/data/mods/gen2/items.js.map +1 -1
- package/build/data/mods/gen2/moves.js +2 -2
- package/build/data/mods/gen2/moves.js.map +1 -1
- package/build/data/mods/gen3/items.js +28 -0
- package/build/data/mods/gen3/items.js.map +1 -1
- package/build/data/mods/gen4/abilities.js +20 -0
- package/build/data/mods/gen4/abilities.js.map +1 -1
- package/build/data/mods/gen4/items.js +28 -0
- package/build/data/mods/gen4/items.js.map +1 -1
- package/build/data/mods/gen4/moves.js +14 -6
- package/build/data/mods/gen4/moves.js.map +1 -1
- package/build/data/mods/gen5/items.js +0 -4
- package/build/data/mods/gen5/items.js.map +1 -1
- package/build/data/mods/gen6/items.js +24 -0
- package/build/data/mods/gen6/items.js.map +1 -1
- package/build/data/mods/gen7/abilities.js +31 -0
- package/build/data/mods/gen7/abilities.js.map +1 -1
- package/build/data/mods/gen7/items.js +12 -0
- package/build/data/mods/gen7/items.js.map +1 -1
- package/build/data/mods/gen7/moves.js +14 -0
- package/build/data/mods/gen7/moves.js.map +1 -1
- package/build/data/moves.js +25 -12
- package/build/data/moves.js.map +1 -1
- package/build/data/rulesets.js +71 -0
- package/build/data/rulesets.js.map +1 -1
- package/build/data/tags.js +3 -3
- package/build/data/tags.js.map +1 -1
- package/build/data/text/moves.js +8 -8
- package/build/data/text/moves.js.map +1 -1
- package/build/sim/battle-queue.d.ts +2 -2
- package/build/sim/battle-queue.js +8 -0
- package/build/sim/battle-queue.js.map +1 -1
- package/build/sim/battle.js +42 -2
- package/build/sim/battle.js.map +1 -1
- package/build/sim/dex-conditions.d.ts +2 -2
- package/build/sim/dex-conditions.js.map +1 -1
- package/build/sim/dex-moves.d.ts +1 -0
- package/build/sim/dex-moves.js.map +1 -1
- package/build/sim/pokemon.js +18 -5
- package/build/sim/pokemon.js.map +1 -1
- package/build/sim/team-validator.js +1 -1
- package/build/sim/team-validator.js.map +1 -1
- package/config/formats.ts +151 -140
- package/data/aliases.ts +2 -2
- package/data/conditions.ts +4 -1
- package/data/formats-data.ts +2 -2
- package/data/items.ts +4 -2
- package/data/learnsets.ts +5 -4
- package/data/mods/gen1/scripts.ts +1 -1
- package/data/mods/gen2/items.ts +28 -0
- package/data/mods/gen2/moves.ts +2 -2
- package/data/mods/gen3/items.ts +28 -0
- package/data/mods/gen4/abilities.ts +20 -0
- package/data/mods/gen4/items.ts +28 -0
- package/data/mods/gen4/moves.ts +14 -7
- package/data/mods/gen5/items.ts +0 -4
- package/data/mods/gen6/items.ts +24 -0
- package/data/mods/gen7/abilities.ts +31 -0
- package/data/mods/gen7/items.ts +12 -0
- package/data/mods/gen7/moves.ts +14 -0
- package/data/moves.ts +25 -11
- package/data/rulesets.ts +70 -0
- package/data/tags.ts +3 -3
- package/data/text/moves.ts +8 -8
- package/package.json +2 -2
- package/sim/battle-queue.ts +10 -2
- package/sim/battle.ts +39 -2
- package/sim/dex-conditions.ts +6 -2
- package/sim/dex-moves.ts +1 -0
- package/sim/pokemon.ts +19 -7
- package/sim/team-validator.ts +1 -1
package/build/data/items.js
CHANGED
|
@@ -775,6 +775,7 @@ exports.Items = {
|
|
|
775
775
|
num: 16,
|
|
776
776
|
gen: 4,
|
|
777
777
|
isPokeball: true,
|
|
778
|
+
isNonstandard: "Unobtainable",
|
|
778
779
|
},
|
|
779
780
|
chestoberry: {
|
|
780
781
|
name: "Chesto Berry",
|
|
@@ -2971,7 +2972,7 @@ exports.Items = {
|
|
|
2971
2972
|
return this.chainModify([5324, 4096]);
|
|
2972
2973
|
},
|
|
2973
2974
|
onAfterMoveSecondarySelf(source, target, move) {
|
|
2974
|
-
if (source && source !== target && move && move.category !== 'Status') {
|
|
2975
|
+
if (source && source !== target && move && move.category !== 'Status' && !source.forceSwitchFlag) {
|
|
2975
2976
|
this.damage(source.baseMaxhp / 10, source, source, this.dex.items.get('lifeorb'));
|
|
2976
2977
|
}
|
|
2977
2978
|
},
|
|
@@ -3857,6 +3858,7 @@ exports.Items = {
|
|
|
3857
3858
|
num: 500,
|
|
3858
3859
|
gen: 4,
|
|
3859
3860
|
isPokeball: true,
|
|
3861
|
+
isNonstandard: "Unobtainable",
|
|
3860
3862
|
},
|
|
3861
3863
|
passhoberry: {
|
|
3862
3864
|
name: "Passho Berry",
|
|
@@ -4975,7 +4977,7 @@ exports.Items = {
|
|
|
4975
4977
|
},
|
|
4976
4978
|
onAfterMoveSecondarySelfPriority: -1,
|
|
4977
4979
|
onAfterMoveSecondarySelf(pokemon, target, move) {
|
|
4978
|
-
if (move.totalDamage) {
|
|
4980
|
+
if (move.totalDamage && !pokemon.forceSwitchFlag) {
|
|
4979
4981
|
this.heal(move.totalDamage / 8, pokemon);
|
|
4980
4982
|
}
|
|
4981
4983
|
},
|