Initial Modpack Upload
This commit is contained in:
1 parent
268b0650aa
commit
3d8b956ee4
1429 files changed
+820128
No files matched your search
@@ -0,0 +1,234 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var abilities_exports = {};
|
||||
__export(abilities_exports, {
|
||||
Abilities: () => Abilities
|
||||
});
|
||||
module.exports = __toCommonJS(abilities_exports);
|
||||
const Abilities = {
|
||||
cutecharm: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.addVolatile("attract", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
effectspore: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"] && !source.status) {
|
||||
const r = this.random(300);
|
||||
if (r < 10) {
|
||||
source.setStatus("slp", target);
|
||||
} else if (r < 20) {
|
||||
source.setStatus("par", target);
|
||||
} else if (r < 30) {
|
||||
source.setStatus("psn", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
flamebody: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.trySetStatus("brn", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
flashfire: {
|
||||
inherit: true,
|
||||
onTryHit(target, source, move) {
|
||||
if (target !== source && move.type === "Fire") {
|
||||
if (move.id === "willowisp" && (target.hasType("Fire") || target.status || target.volatiles["substitute"])) {
|
||||
return;
|
||||
}
|
||||
if (target.status === "frz") {
|
||||
return;
|
||||
}
|
||||
if (!target.addVolatile("flashfire")) {
|
||||
this.add("-immune", target, "[from] ability: Flash Fire");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
},
|
||||
intimidate: {
|
||||
inherit: true,
|
||||
onStart(pokemon) {
|
||||
let activated = false;
|
||||
for (const target of pokemon.adjacentFoes()) {
|
||||
if (!target.volatiles["substitute"]) {
|
||||
activated = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!activated) {
|
||||
this.hint("In Gen 3, Intimidate does not activate if every target has a Substitute.", false, pokemon.side);
|
||||
return;
|
||||
}
|
||||
this.add("-ability", pokemon, "Intimidate", "boost");
|
||||
for (const target of pokemon.adjacentFoes()) {
|
||||
if (target.volatiles["substitute"]) {
|
||||
this.add("-immune", target);
|
||||
} else {
|
||||
this.boost({ atk: -1 }, target, pokemon, null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
lightningrod: {
|
||||
onFoeRedirectTarget(target, source, source2, move) {
|
||||
if (move.type !== "Electric")
|
||||
return;
|
||||
if (this.validTarget(this.effectState.target, source, move.target)) {
|
||||
return this.effectState.target;
|
||||
}
|
||||
},
|
||||
isBreakable: true,
|
||||
name: "Lightning Rod",
|
||||
rating: 0,
|
||||
num: 32
|
||||
},
|
||||
minus: {
|
||||
inherit: true,
|
||||
onModifySpA(spa, pokemon) {
|
||||
for (const active of this.getAllActive()) {
|
||||
if (!active.fainted && active.hasAbility("plus")) {
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
plus: {
|
||||
inherit: true,
|
||||
onModifySpA(spa, pokemon) {
|
||||
for (const active of this.getAllActive()) {
|
||||
if (!active.fainted && active.hasAbility("minus")) {
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
poisonpoint: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.trySetStatus("psn", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
pressure: {
|
||||
inherit: true,
|
||||
onStart(pokemon) {
|
||||
this.addSplit(pokemon.side.id, ["-ability", pokemon, "Pressure", "[silent]"]);
|
||||
}
|
||||
},
|
||||
raindish: {
|
||||
inherit: true,
|
||||
onWeather() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 3,
|
||||
onResidual(pokemon) {
|
||||
if (["raindance", "primordialsea"].includes(pokemon.effectiveWeather())) {
|
||||
this.heal(pokemon.baseMaxhp / 16);
|
||||
}
|
||||
}
|
||||
},
|
||||
roughskin: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
this.damage(source.baseMaxhp / 16, source, target);
|
||||
}
|
||||
}
|
||||
},
|
||||
shadowtag: {
|
||||
inherit: true,
|
||||
onFoeTrapPokemon(pokemon) {
|
||||
pokemon.trapped = true;
|
||||
}
|
||||
},
|
||||
static: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.trySetStatus("par", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
trace: {
|
||||
inherit: true,
|
||||
onUpdate(pokemon) {
|
||||
if (!pokemon.isStarted)
|
||||
return;
|
||||
const target = pokemon.side.randomFoe();
|
||||
if (!target || target.fainted)
|
||||
return;
|
||||
const ability = target.getAbility();
|
||||
const bannedAbilities = ["forecast", "multitype", "trace"];
|
||||
if (bannedAbilities.includes(target.ability)) {
|
||||
return;
|
||||
}
|
||||
if (pokemon.setAbility(ability)) {
|
||||
this.add("-ability", pokemon, ability, "[from] ability: Trace", "[of] " + target);
|
||||
}
|
||||
}
|
||||
},
|
||||
truant: {
|
||||
inherit: true,
|
||||
onStart() {
|
||||
},
|
||||
onSwitchIn(pokemon) {
|
||||
pokemon.truantTurn = this.turn !== 0;
|
||||
},
|
||||
onBeforeMove(pokemon) {
|
||||
if (pokemon.truantTurn) {
|
||||
this.add("cant", pokemon, "ability: Truant");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
onResidualOrder: 27,
|
||||
onResidual(pokemon) {
|
||||
pokemon.truantTurn = !pokemon.truantTurn;
|
||||
}
|
||||
},
|
||||
voltabsorb: {
|
||||
inherit: true,
|
||||
onTryHit(target, source, move) {
|
||||
if (target !== source && move.type === "Electric" && move.id !== "thunderwave") {
|
||||
if (!this.heal(target.baseMaxhp / 4)) {
|
||||
this.add("-immune", target, "[from] ability: Volt Absorb");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=abilities.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/abilities.ts"],
|
||||
"sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\tcutecharm: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.addVolatile('attract', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\teffectspore: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact'] && !source.status) {\r\n\t\t\t\tconst r = this.random(300);\r\n\t\t\t\tif (r < 10) {\r\n\t\t\t\t\tsource.setStatus('slp', target);\r\n\t\t\t\t} else if (r < 20) {\r\n\t\t\t\t\tsource.setStatus('par', target);\r\n\t\t\t\t} else if (r < 30) {\r\n\t\t\t\t\tsource.setStatus('psn', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tflamebody: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.trySetStatus('brn', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tflashfire: {\r\n\t\tinherit: true,\r\n\t\tonTryHit(target, source, move) {\r\n\t\t\tif (target !== source && move.type === 'Fire') {\r\n\t\t\t\tif (move.id === 'willowisp' && (target.hasType('Fire') || target.status || target.volatiles['substitute'])) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (target.status === 'frz') {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!target.addVolatile('flashfire')) {\r\n\t\t\t\t\tthis.add('-immune', target, '[from] ability: Flash Fire');\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tintimidate: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon) {\r\n\t\t\tlet activated = false;\r\n\t\t\tfor (const target of pokemon.adjacentFoes()) {\r\n\t\t\t\tif (!target.volatiles['substitute']) {\r\n\t\t\t\t\tactivated = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!activated) {\r\n\t\t\t\tthis.hint(\"In Gen 3, Intimidate does not activate if every target has a Substitute.\", false, pokemon.side);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('-ability', pokemon, 'Intimidate', 'boost');\r\n\r\n\t\t\tfor (const target of pokemon.adjacentFoes()) {\r\n\t\t\t\tif (target.volatiles['substitute']) {\r\n\t\t\t\t\tthis.add('-immune', target);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.boost({atk: -1}, target, pokemon, null, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tlightningrod: {\r\n\t\tonFoeRedirectTarget(target, source, source2, move) {\r\n\t\t\tif (move.type !== 'Electric') return;\r\n\t\t\tif (this.validTarget(this.effectState.target, source, move.target)) {\r\n\t\t\t\treturn this.effectState.target;\r\n\t\t\t}\r\n\t\t},\r\n\t\tisBreakable: true,\r\n\t\tname: \"Lightning Rod\",\r\n\t\trating: 0,\r\n\t\tnum: 32,\r\n\t},\r\n\tminus: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA(spa, pokemon) {\r\n\t\t\tfor (const active of this.getAllActive()) {\r\n\t\t\t\tif (!active.fainted && active.hasAbility('plus')) {\r\n\t\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tplus: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA(spa, pokemon) {\r\n\t\t\tfor (const active of this.getAllActive()) {\r\n\t\t\t\tif (!active.fainted && active.hasAbility('minus')) {\r\n\t\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpoisonpoint: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.trySetStatus('psn', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpressure: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon) {\r\n\t\t\tthis.addSplit(pokemon.side.id, ['-ability', pokemon, 'Pressure', '[silent]']);\r\n\t\t},\r\n\t},\r\n\traindish: {\r\n\t\tinherit: true,\r\n\t\tonWeather() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 3,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (['raindance', 'primordialsea'].includes(pokemon.effectiveWeather())) {\r\n\t\t\t\tthis.heal(pokemon.baseMaxhp / 16);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\troughskin: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tthis.damage(source.baseMaxhp / 16, source, target);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tshadowtag: {\r\n\t\tinherit: true,\r\n\t\tonFoeTrapPokemon(pokemon) {\r\n\t\t\tpokemon.trapped = true;\r\n\t\t},\r\n\t},\r\n\tstatic: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.trySetStatus('par', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\ttrace: {\r\n\t\tinherit: true,\r\n\t\tonUpdate(pokemon) {\r\n\t\t\tif (!pokemon.isStarted) return;\r\n\t\t\tconst target = pokemon.side.randomFoe();\r\n\t\t\tif (!target || target.fainted) return;\r\n\t\t\tconst ability = target.gLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc,QAAQ,QAAQ,QAAQ,MAAM;AAC3C,UAAI,UAAU,KAAK,MAAM,SAAS,GAAG;AACpC,YAAI,KAAK,aAAa,GAAG,CAAC,GAAG;AAC5B,iBAAO,YAAY,WAAW,MAAM;AAAA,QACrC;AAAA,MACD;AAAA,IACD;AA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AQ,KAAK,UAAU;AACtC,UAAI,CAAC,UAAU,OAAO;AAAS;AAC/B,YAAM,UAAU,OAAO,WAAW;AAClC,YAAM,kBAAkB,CAAC,YAAY,aAAa,OAAO;AACzD,UAAI,gBAAgB,SAAS,OAAO,OAAO,GAAG;AAC7C;AAAA,MACD;AACA,UAAI,QAAQ,WAAW,OAAO,GAAG;AAChC,aAAK,IAAI,YAAY,SAAS,SAAS,yBAAyB,UAAU,MAAM;AAAA,MACjF;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,UAAU;AAAA,IAAC;AAAA,IACX,WAAW,SAAS;AACnB,cAAQ,aAAa,KAAK,SAAS;AAAA,IACpC;AAAA,IACA,aAAa,SAAS;AACrB,UAAI,QAAQ,YAAY;AACvB,aAAK,IAAI,QAAQ,SAAS,iBAAiB;AAC3C,eAAO;AAAA,MACR;AAAA,IACD;AAAA,IACA,iBAAiB;AAAA,IACjB,WAAW,SAAS;AACnB,cAAQ,aAAa,CAAC,QAAQ;AAAA,IAC/B;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,SAAS,QAAQ,QAAQ,MAAM;AAC9B,UAAI,WAAW,UAAU,KAAK,SAAS,cAAc,KAAK,OAAO,eAAe;AAC/E,YAAI,CAAC,KAAK,KAAK,OAAO,YAAY,CAAC,GAAG;AACrC,eAAK,IAAI,WAAW,QAAQ,6BAA6B;AAAA,QAC1D;AACA,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.time = this.random(2, 6);
|
||||
this.effectState.skippedTime = 0;
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onSwitchIn(target) {
|
||||
this.effectState.time += this.effectState.skippedTime;
|
||||
this.effectState.skippedTime = 0;
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (pokemon.hasAbility("earlybird")) {
|
||||
pokemon.statusState.time--;
|
||||
}
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time <= 0) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "slp");
|
||||
if (move.sleepUsable) {
|
||||
this.effectState.skippedTime++;
|
||||
return;
|
||||
}
|
||||
this.effectState.skippedTime = 0;
|
||||
return false;
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (this.dex.moves.get(move.id).type === "Fire" && move.category !== "Status") {
|
||||
target.cureStatus();
|
||||
}
|
||||
}
|
||||
},
|
||||
sandstorm: {
|
||||
inherit: true,
|
||||
onModifySpD() {
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-4 turns\r\n\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t\t// Turns spent using Sleep Talk/Snore immediately before switching out while asleep\r\n\t\t\tthis.effectState.skippedTime = 0;\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonSwitchIn(target) {\r\n\t\t\tthis.effectState.time += this.effectState.skippedTime;\r\n\t\t\tthis.effectState.skippedTime = 0;\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tif (pokemon.hasAbility('earlybird')) {\r\n\t\t\t\tpokemon.statusState.time--;\r\n\t\t\t}\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time <= 0) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tif (move.sleepUsable) {\r\n\t\t\t\tthis.effectState.skippedTime++;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.effectState.skippedTime = 0;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\t// don't count Hidden Power or Weather Ball as Fire-type\r\n\t\t\tif (this.dex.moves.get(move.id).type === 'Fire' && move.category !== 'Status') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tsandstorm: {\r\n\t\tinherit: true,\r\n\t\tonModifySpD() {},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA,EAC7D,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ,QAAQ,cAAc;AACrC,UAAI,gBAAgB,aAAa,eAAe,QAAQ;AACvD,aAAK,IAAI,WAAW,QAAQ,OAAO,kBAAkB,aAAa,IAAI;AAAA,MACvE,OAAO;AACN,aAAK,IAAI,WAAW,QAAQ,KAAK;AAAA,MAClC;AAEA,WAAK,YAAY,OAAO,KAAK,OAAO,GAAG,CAAC;AAExC,WAAK,YAAY,cAAc;AAE/B,UAAI,OAAO,eAAe,WAAW,GAAG;AACvC,aAAK,IAAI,QAAQ,QAAQ,aAAa,UAAU;AAAA,MACjD;AAAA,IACD;AAAA,IACA,WAAW,QAAQ;AAClB,WAAK,YAAY,QAAQ,KAAK,YAAY;AAC1C,WAAK,YAAY,cAAc;AAAA,IAChC;AAAA,IACA,sBAAsB;AAAA,IACtB,aAAa,SAAS,QAAQ,MAAM;AACnC,UAAI,QAAQ,WAAW,WAAW,GAAG;AACpC,gBAAQ,YAAY;AAAA,MACrB;AACA,cAAQ,YAAY;AACpB,UAAI,QAAQ,YAAY,QAAQ,GAAG;AAClC,gBAAQ,WAAW;AACnB;AAAA,MACD;AACA,WAAK,IAAI,QAAQ,SAAS,KAAK;AAC/B,UAAI,KAAK,aAAa;AACrB,aAAK,YAAY;AACjB;AAAA,MACD;AACA,WAAK,YAAY,cAAc;AAC/B,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,cAAc,QAAQ,QAAQ,QAAQ,MAAM;AAE3C,UAAI,KAAK,IAAI,MAAM,IAAI,KAAK,EAAE,EAAE,SAAS,UAAU,KAAK,aAAa,UAAU;AAC9E,eAAO,WAAW;AAAA,MACnB;AAAA,IACD;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,EAChB;AACD;",
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/formats-data.ts"],
|
||||
"sourcesContent": ["export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {\r\n\tbulbasaur: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tivysaur: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvenusaur: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tsquirtle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tcaterpie: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tweedle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpidgey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\trattata: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tspearow: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpichu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\traichu: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tsandshrew: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsandslash: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tnidoranf: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorina: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoqueen: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tnidoranm: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorino: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoking: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tcleffa: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tclefairy: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tclefable: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tvulpix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tninetales: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tigglybuff: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tjigglypuff: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\twigglytuff: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tzubat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolbat: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tcrobat: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tbellossom: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tvenonat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tvenomoth: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdiglett: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdugtrio: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpsyduck: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolduck: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmankey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tprimeape: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpolitoed: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tabra: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkadabra: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\talakazam: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"PUBL\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tbellsprout: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tweepinbell: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvictreebel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\ttentacool: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapidash: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tslowpoke: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tslowbro: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tslowking: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmagnemite: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmagneton: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tfarfetchd: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tdoduo: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdodrio: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tseel: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdewgong: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgrimer: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmuk: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tshellder: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcloyster: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tgastly: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thaunter: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgengar: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tonix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsteelix: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tdrowzee: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thypno: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tkrabby: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkingler: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tvoltorb: {\r\n\t\Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAuD;AAAA,EACnE,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,E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AAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,MAAM;AAAA,IACL,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,617 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var items_exports = {};
|
||||
__export(items_exports, {
|
||||
Items: () => Items
|
||||
});
|
||||
module.exports = __toCommonJS(items_exports);
|
||||
const Items = {
|
||||
aguavberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
apicotberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
berryjuice: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
if (this.runEvent("TryHeal", pokemon) && pokemon.useItem()) {
|
||||
this.heal(20);
|
||||
}
|
||||
}
|
||||
},
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
blackbelt: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Fighting") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
blackglasses: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Dark") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
charcoal: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Fire") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
dragonfang: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Dragon") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
enigmaberry: {
|
||||
name: "Enigma Berry",
|
||||
spritenum: 124,
|
||||
isBerry: true,
|
||||
num: 208,
|
||||
gen: 3,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
fastball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
figyberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
ganlonberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
hardstone: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Rock") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
heavyball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
iapapaberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
kingsrock: {
|
||||
inherit: true,
|
||||
onModifyMove(move) {
|
||||
const affectedByKingsRock = [
|
||||
"aerialace",
|
||||
"aeroblast",
|
||||
"aircutter",
|
||||
"armthrust",
|
||||
"barrage",
|
||||
"beatup",
|
||||
"bide",
|
||||
"bind",
|
||||
"blastburn",
|
||||
"bonerush",
|
||||
"bonemerang",
|
||||
"bounce",
|
||||
"brickbreak",
|
||||
"bulletseed",
|
||||
"clamp",
|
||||
"cometpunch",
|
||||
"crabhammer",
|
||||
"crosschop",
|
||||
"cut",
|
||||
"dig",
|
||||
"dive",
|
||||
"doublekick",
|
||||
"doubleslap",
|
||||
"doubleedge",
|
||||
"dragonbreath",
|
||||
"dragonclaw",
|
||||
"dragonrage",
|
||||
"drillpeck",
|
||||
"earthquake",
|
||||
"eggbomb",
|
||||
"endeavor",
|
||||
"eruption",
|
||||
"explosion",
|
||||
"extremespeed",
|
||||
"falseswipe",
|
||||
"feintattack",
|
||||
"firespin",
|
||||
"flail",
|
||||
"fly",
|
||||
"frenzyplant",
|
||||
"frustration",
|
||||
"furyattack",
|
||||
"furycutter",
|
||||
"furyswipes",
|
||||
"gust",
|
||||
"hiddenpower",
|
||||
"highjumpkick",
|
||||
"hornattack",
|
||||
"hydrocannon",
|
||||
"hydropump",
|
||||
"hyperbeam",
|
||||
"iceball",
|
||||
"iciclespear",
|
||||
"jumpkick",
|
||||
"karatechop",
|
||||
"leafblade",
|
||||
"lowkick",
|
||||
"machpunch",
|
||||
"magicalleaf",
|
||||
"magnitude",
|
||||
"megakick",
|
||||
"megapunch",
|
||||
"megahorn",
|
||||
"meteormash",
|
||||
"mudshot",
|
||||
"muddywater",
|
||||
"nightshade",
|
||||
"outrage",
|
||||
"overheat",
|
||||
"payday",
|
||||
"peck",
|
||||
"petaldance",
|
||||
"pinmissile",
|
||||
"poisontail",
|
||||
"pound",
|
||||
"psychoboost",
|
||||
"psywave",
|
||||
"quickattack",
|
||||
"rage",
|
||||
"rapidspin",
|
||||
"razorleaf",
|
||||
"razorwind",
|
||||
"return",
|
||||
"revenge",
|
||||
"reversal",
|
||||
"rockblast",
|
||||
"rockthrow",
|
||||
"rollingkick",
|
||||
"rollout",
|
||||
"sandtomb",
|
||||
"scratch",
|
||||
"seismictoss",
|
||||
"selfdestruct",
|
||||
"shadowpunch",
|
||||
"shockwave",
|
||||
"signalbeam",
|
||||
"silverwind",
|
||||
"skullbash",
|
||||
"skyattack",
|
||||
"skyuppercut",
|
||||
"slam",
|
||||
"slash",
|
||||
"snore",
|
||||
"solarbeam",
|
||||
"sonicboom",
|
||||
"spikecannon",
|
||||
"spitup",
|
||||
"steelwing",
|
||||
"strength",
|
||||
"struggle",
|
||||
"submission",
|
||||
"surf",
|
||||
"swift",
|
||||
"tackle",
|
||||
"takedown",
|
||||
"thrash",
|
||||
"tickle",
|
||||
"triplekick",
|
||||
"twister",
|
||||
"uproar",
|
||||
"visegrip",
|
||||
"vinewhip",
|
||||
"vitalthrow",
|
||||
"volttackle",
|
||||
"watergun",
|
||||
"waterpulse",
|
||||
"waterfall",
|
||||
"weatherball",
|
||||
"whirlpool",
|
||||
"wingattack",
|
||||
"wrap"
|
||||
];
|
||||
if (affectedByKingsRock.includes(move.id)) {
|
||||
if (!move.secondaries)
|
||||
move.secondaries = [];
|
||||
move.secondaries.push({
|
||||
chance: 10,
|
||||
volatileStatus: "flinch"
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
lansatberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
laxincense: {
|
||||
inherit: true,
|
||||
onModifyAccuracy(accuracy) {
|
||||
if (typeof accuracy !== "number")
|
||||
return;
|
||||
this.debug("lax incense - decreasing accuracy");
|
||||
return accuracy * 0.95;
|
||||
}
|
||||
},
|
||||
levelball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
liechiberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
lightball: {
|
||||
inherit: true,
|
||||
onModifySpA(spa, pokemon) {
|
||||
if (pokemon.species.name === "Pikachu") {
|
||||
return this.chainModify(2);
|
||||
}
|
||||
},
|
||||
onBasePower() {
|
||||
}
|
||||
},
|
||||
loveball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
lureball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
magnet: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Electric") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
magoberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
metalcoat: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Steel") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
miracleseed: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Grass") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
moonball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
mysticwater: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Water") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
nevermeltice: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Ice") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
oranberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
petayaberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
poisonbarb: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Poison") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
quickclaw: {
|
||||
inherit: true,
|
||||
onFractionalPriority() {
|
||||
}
|
||||
// implemented in Pokemon#getActionSpeed()
|
||||
},
|
||||
salacberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
seaincense: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Water") {
|
||||
return this.chainModify(1.05);
|
||||
}
|
||||
}
|
||||
},
|
||||
sharpbeak: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Flying") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
silkscarf: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Normal") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
silverpowder: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Bug") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
sitrusberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
},
|
||||
onEat(pokemon) {
|
||||
this.heal(30);
|
||||
}
|
||||
},
|
||||
softsand: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Ground") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
spelltag: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
onModifyAtk(atk, user, target, move) {
|
||||
if (move?.type === "Ghost") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
sportball: {
|
||||
inherit: true,
|
||||
isNonstandard: "Unobtainable"
|
||||
},
|
||||
starfberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 4) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
},
|
||||
twistedspoon: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifySpAPriority: 1,
|
||||
onModifySpA(spa, user, target, move) {
|
||||
if (move?.type === "Psychic") {
|
||||
return this.chainModify(1.1);
|
||||
}
|
||||
}
|
||||
},
|
||||
wikiberry: {
|
||||
inherit: true,
|
||||
onUpdate() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 4,
|
||||
onResidual(pokemon) {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
pokemon.eatItem();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=items.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/items.ts"],
|
||||
"sourcesContent": ["export const Items: {[k: string]: ModdedItemData} = {\r\n\taguavberry: {\r\n\t\tinherit: true,\r\n\t\tonUpdate() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 4,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 2) {\r\n\t\t\t\tpokemon.eatItem();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tapicotberry: {\r\n\t\tinherit: true,\r\n\t\tonUpdate() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 4,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 4) {\r\n\t\t\t\tpokemon.eatItem();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tberryjuice: {\r\n\t\tinherit: true,\r\n\t\tonUpdate() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 4,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 2) {\r\n\t\t\t\tif (this.runEvent('TryHeal', pokemon) && pokemon.useItem()) {\r\n\t\t\t\t\tthis.heal(20);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tisNonstandard: \"Unobtainable\",\r\n\t},\r\n\tblackbelt: {\r\n\t\tinherit: true,\r\n\t\tonBasePower() {},\r\n\t\tonModifyAtkPriority: 1,\r\n\t\tonModifyAtk(atk, user, target, move) {\r\n\t\t\tif (move?.type === 'Fighting') {\r\n\t\t\t\treturn this.chainModify(1.1);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tblackglasses: {\r\n\t\tinherit: true,\r\n\t\tonBasePower() {},\r\n\t\tonModifySpAPriority: 1,\r\n\t\tonModifySpA(spa, user, target, move) {\r\n\t\t\tif (move?.type === 'Dark') {\r\n\t\t\t\treturn this.chainModify(1.1);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcharcoal: {\r\n\t\tinherit: true,\r\n\t\tonBasePower() {},\r\n\t\tonModifySpAPriority: 1,\r\n\t\tonModifySpA(spa, user, target, move) {\r\n\t\t\tif (move?.type === 'Fire') {\r\n\t\t\t\treturn this.chainModify(1.1);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tdragonfang: {\r\n\t\tinherit: true,\r\n\t\tonBasePower() {},\r\n\t\tonModifySpAPriority: 1,\r\n\t\tonModifySpA(spa, user, target, move) {\r\n\t\t\tif (move?.type === 'Dragon') {\r\n\t\t\t\treturn this.chainModify(1.1);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tenigmaberry: {\r\n\t\tname: \"Enigma Berry\",\r\n\t\tspritenum: 124,\r\n\t\tisBerry: true,\r\n\t\tnum: 208,\r\n\t\tgen: 3,\r\n\t\tisNonstandard: \"Unobtainable\",\r\n\t},\r\n\tfastball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: \"Unobtainable\",\r\n\t},\r\n\tfigyberry: {\r\n\t\tinherit: true,\r\n\t\tonUpdate() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 4,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 2) {\r\n\t\t\t\tpokemon.eatItem();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tganlonberry: {\r\n\t\tinherit: true,\r\n\t\tonUpdate() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 4,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 4) {\r\n\t\t\t\tpokemon.eatItem();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\thardstone: {\r\n\t\tinherit: true,\r\n\t\tonBasePower() {},\r\n\t\tonModifyAtkPriority: 1,\r\n\t\tonModifyAtk(atk, user, target, move) {\r\n\t\t\tif (move?.type === 'Rock') {\r\n\t\t\t\treturn this.chainModify(1.1);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\theavyball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: \"Unobtainable\",\r\n\t},\r\n\tiapapaberry: {\r\n\t\tinherit: true,\r\n\t\tonUpdate() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 4,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 2) {\r\n\t\t\t\tpokemon.eatItem();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tkingsrock: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move) {\r\n\t\t\tconst affectedByKingsRock = [\r\n\t\t\t\t'aerialace', 'aeroblast', 'aircutter', 'armthrust', 'barrage', 'beatup', 'bide', 'bind', 'blastburn', 'bonerush', 'bonemerang', 'bounce', 'brickbreak', 'bulletseed', 'clamp', 'cometpunch', 'crabhammer', 'crosschop', 'cut', 'dig', 'dive', 'doublekick', 'doubleslap', 'doubleedge', 'dragonbreath', 'dragonclaw', 'dragonrage', 'drillpeck', 'earthquake', 'eggbomb', 'endeavor', 'eruption', 'explosion', 'extremespeed', 'falseswipe', 'feintattack', 'firespin', 'flail', 'fly', 'frenzyplant', 'frustration', 'furyattack', 'furycutter', 'furyswipes', 'gust', 'hiddenpower', 'highjumpkick', 'hornattack', 'hydrocannon', 'hydropump', 'hyperbeam', 'iceball', 'iciclespear', 'jumpkick', 'karatechop', 'leafblade', 'lowkick', 'machpunch', 'magicalleaf', 'magnitude', 'megakick', 'megapunch', 'megahorn', 'meteormash', 'mudshot', 'muddywater', 'nightshade', 'outrage', 'overheat', 'payday', 'peck', 'petaldance', 'pinmissile', 'poisontail', 'pound', 'psychoboost', 'psywave', 'quickattack', 'rage', 'rapidspin', 'razorleaf', 'razorwind', 'return', 'revenge', 'reversal', 'rockblast', 'rockthrow', 'rollingkick', 'rollout', 'sandtomb', 'scratch', 'seismictoss', 'selfdestruct', 'shadowpunch', 'shockwave', 'signalbeam', 'silverwind', 'skullbash', 'skyattack', 'skyuppercut', 'slam', 'slash', 'snore', 'solarbeam', 'sonicboom', 'spikecannon', 'spitup', 'steelwing', 'strength', 'struggle', 'submission', 'surf', 'swift', 'tackle', 'takedown', 'thrash', 'tickle', 'triplekick', 'twister', 'uproar', 'visegrip', 'vinewhip', 'vitalthrow', 'volttLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,IAAC;AAAA,IACZ,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,WAAW,SAAS;AACnB,UAAI,QAAQ,MAAM,QAAQ,QAAQ,GAAG;AACpC,gBAAQ,QAAQ;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,WAAW;AAAA,IAAC;AAAA,IACZ,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,WAAW,SAAS;AACnB,UAAI,QAAQ,MAAM,QAAQ,QAAQ,GAAG;AACpC,gBAAQ,QAAQ;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,IAAC;AAAA,IACZ,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,WAAW,SAAS;AACnB,UAAI,QAAQ,MAAM,QAAQ,QAAQ,GAAG;AACpC,YAAI,KAAK,SAAS,WAAW,OAAO,KAAK,QAAQ,QAAQ,GAAG;AAC3D,eAAK,KAAK,EAAE;AAAA,QACb;AAAA,MACD;AAAA,IACD;AAAA,IACA,eAAe;AAAA,EAChB;AAAA,EACA,WAAW;AA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AAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,cAAc;AAAA,IAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,747 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var moves_exports = {};
|
||||
__export(moves_exports, {
|
||||
Moves: () => Moves
|
||||
});
|
||||
module.exports = __toCommonJS(moves_exports);
|
||||
const Moves = {
|
||||
absorb: {
|
||||
inherit: true,
|
||||
pp: 20
|
||||
},
|
||||
acid: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 10,
|
||||
boosts: {
|
||||
def: -1
|
||||
}
|
||||
}
|
||||
},
|
||||
ancientpower: {
|
||||
inherit: true,
|
||||
flags: { contact: 1, protect: 1, mirror: 1 }
|
||||
},
|
||||
astonish: {
|
||||
inherit: true,
|
||||
basePowerCallback(pokemon, target) {
|
||||
if (target.volatiles["minimize"])
|
||||
return 60;
|
||||
return 30;
|
||||
}
|
||||
},
|
||||
beatup: {
|
||||
inherit: true,
|
||||
onModifyMove(move, pokemon) {
|
||||
pokemon.addVolatile("beatup");
|
||||
move.type = "???";
|
||||
move.category = "Special";
|
||||
move.allies = pokemon.side.pokemon.filter((ally) => !ally.fainted && !ally.status);
|
||||
move.multihit = move.allies.length;
|
||||
},
|
||||
condition: {
|
||||
duration: 1,
|
||||
onModifySpAPriority: -101,
|
||||
onModifySpA(atk, pokemon, defender, move) {
|
||||
this.event.modifier = 1;
|
||||
return move.allies.shift().species.baseStats.atk;
|
||||
},
|
||||
onFoeModifySpDPriority: -101,
|
||||
onFoeModifySpD(def, pokemon) {
|
||||
this.event.modifier = 1;
|
||||
return pokemon.species.baseStats.def;
|
||||
}
|
||||
}
|
||||
},
|
||||
bide: {
|
||||
inherit: true,
|
||||
accuracy: 100,
|
||||
priority: 0,
|
||||
condition: {
|
||||
duration: 3,
|
||||
onLockMove: "bide",
|
||||
onStart(pokemon) {
|
||||
this.effectState.totalDamage = 0;
|
||||
this.add("-start", pokemon, "move: Bide");
|
||||
},
|
||||
onDamagePriority: -101,
|
||||
onDamage(damage, target, source, move) {
|
||||
if (!move || move.effectType !== "Move" || !source)
|
||||
return;
|
||||
this.effectState.totalDamage += damage;
|
||||
this.effectState.lastDamageSource = source;
|
||||
},
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (this.effectState.duration === 1) {
|
||||
this.add("-end", pokemon, "move: Bide");
|
||||
if (!this.effectState.totalDamage) {
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
target = this.effectState.lastDamageSource;
|
||||
if (!target) {
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (!target.isActive) {
|
||||
const possibleTarget = this.getRandomTarget(pokemon, this.dex.moves.get("pound"));
|
||||
if (!possibleTarget) {
|
||||
this.add("-miss", pokemon);
|
||||
return false;
|
||||
}
|
||||
target = possibleTarget;
|
||||
}
|
||||
const moveData = {
|
||||
id: "bide",
|
||||
name: "Bide",
|
||||
accuracy: 100,
|
||||
damage: this.effectState.totalDamage * 2,
|
||||
category: "Physical",
|
||||
priority: 0,
|
||||
flags: { contact: 1, protect: 1 },
|
||||
effectType: "Move",
|
||||
type: "Normal"
|
||||
};
|
||||
this.actions.tryMoveHit(target, pokemon, moveData);
|
||||
pokemon.removeVolatile("bide");
|
||||
return false;
|
||||
}
|
||||
this.add("-activate", pokemon, "move: Bide");
|
||||
},
|
||||
onMoveAborted(pokemon) {
|
||||
pokemon.removeVolatile("bide");
|
||||
},
|
||||
onEnd(pokemon) {
|
||||
this.add("-end", pokemon, "move: Bide", "[silent]");
|
||||
}
|
||||
}
|
||||
},
|
||||
blizzard: {
|
||||
inherit: true,
|
||||
onModifyMove() {
|
||||
}
|
||||
},
|
||||
brickbreak: {
|
||||
inherit: true,
|
||||
onTryHit(target, source) {
|
||||
const foe = source.side.foe;
|
||||
foe.removeSideCondition("reflect");
|
||||
foe.removeSideCondition("lightscreen");
|
||||
}
|
||||
},
|
||||
charge: {
|
||||
inherit: true,
|
||||
boosts: null
|
||||
},
|
||||
conversion: {
|
||||
inherit: true,
|
||||
onHit(target) {
|
||||
const possibleTypes = target.moveSlots.map((moveSlot) => {
|
||||
const move = this.dex.moves.get(moveSlot.id);
|
||||
if (move.id !== "curse" && !target.hasType(move.type)) {
|
||||
return move.type;
|
||||
}
|
||||
return "";
|
||||
}).filter((type2) => type2);
|
||||
if (!possibleTypes.length) {
|
||||
return false;
|
||||
}
|
||||
const type = this.sample(possibleTypes);
|
||||
if (!target.setType(type))
|
||||
return false;
|
||||
this.add("-start", target, "typechange", type);
|
||||
}
|
||||
},
|
||||
counter: {
|
||||
inherit: true,
|
||||
condition: {
|
||||
duration: 1,
|
||||
noCopy: true,
|
||||
onStart(target, source, move) {
|
||||
this.effectState.slot = null;
|
||||
this.effectState.damage = 0;
|
||||
},
|
||||
onRedirectTargetPriority: -1,
|
||||
onRedirectTarget(target, source, source2) {
|
||||
if (source !== this.effectState.target || !this.effectState.slot)
|
||||
return;
|
||||
return this.getAtSlot(this.effectState.slot);
|
||||
},
|
||||
onDamagePriority: -101,
|
||||
onDamage(damage, target, source, effect) {
|
||||
if (effect.effectType === "Move" && !source.isAlly(target) && (effect.category === "Physical" || effect.id === "hiddenpower")) {
|
||||
this.effectState.slot = source.getSlot();
|
||||
this.effectState.damage = 2 * damage;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
covet: {
|
||||
inherit: true,
|
||||
flags: { protect: 1, mirror: 1, noassist: 1 }
|
||||
},
|
||||
crunch: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 20,
|
||||
boosts: {
|
||||
spd: -1
|
||||
}
|
||||
}
|
||||
},
|
||||
dig: {
|
||||
inherit: true,
|
||||
basePower: 60
|
||||
},
|
||||
disable: {
|
||||
inherit: true,
|
||||
accuracy: 55,
|
||||
flags: { protect: 1, mirror: 1, bypasssub: 1 },
|
||||
volatileStatus: "disable",
|
||||
condition: {
|
||||
durationCallback() {
|
||||
return this.random(2, 6);
|
||||
},
|
||||
noCopy: true,
|
||||
onStart(pokemon) {
|
||||
if (!this.queue.willMove(pokemon)) {
|
||||
this.effectState.duration++;
|
||||
}
|
||||
if (!pokemon.lastMove) {
|
||||
return false;
|
||||
}
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id === pokemon.lastMove.id) {
|
||||
if (!moveSlot.pp) {
|
||||
return false;
|
||||
} else {
|
||||
this.add("-start", pokemon, "Disable", moveSlot.move);
|
||||
this.effectState.move = pokemon.lastMove.id;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
onEnd(pokemon) {
|
||||
this.add("-end", pokemon, "move: Disable");
|
||||
},
|
||||
onBeforeMove(attacker, defender, move) {
|
||||
if (move.id === this.effectState.move) {
|
||||
this.add("cant", attacker, "Disable", move);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id === this.effectState.move) {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
dive: {
|
||||
inherit: true,
|
||||
basePower: 60
|
||||
},
|
||||
doomdesire: {
|
||||
inherit: true,
|
||||
onTry(source, target) {
|
||||
if (!target.side.addSlotCondition(target, "futuremove"))
|
||||
return false;
|
||||
const moveData = {
|
||||
name: "Doom Desire",
|
||||
basePower: 120,
|
||||
category: "Physical",
|
||||
flags: {},
|
||||
willCrit: false,
|
||||
type: "???"
|
||||
};
|
||||
const damage = this.actions.getDamage(source, target, moveData, true);
|
||||
Object.assign(target.side.slotConditions[target.position]["futuremove"], {
|
||||
duration: 3,
|
||||
move: "doomdesire",
|
||||
source,
|
||||
moveData: {
|
||||
id: "doomdesire",
|
||||
name: "Doom Desire",
|
||||
accuracy: 85,
|
||||
basePower: 0,
|
||||
damage,
|
||||
category: "Physical",
|
||||
flags: { futuremove: 1 },
|
||||
effectType: "Move",
|
||||
type: "???"
|
||||
}
|
||||
});
|
||||
this.add("-start", source, "Doom Desire");
|
||||
return null;
|
||||
}
|
||||
},
|
||||
encore: {
|
||||
inherit: true,
|
||||
volatileStatus: "encore",
|
||||
condition: {
|
||||
durationCallback() {
|
||||
return this.random(3, 7);
|
||||
},
|
||||
onStart(target, source) {
|
||||
const moveIndex = target.lastMove ? target.moves.indexOf(target.lastMove.id) : -1;
|
||||
if (!target.lastMove || target.lastMove.flags["failencore"] || !target.moveSlots[moveIndex] || target.moveSlots[moveIndex].pp <= 0) {
|
||||
return false;
|
||||
}
|
||||
this.effectState.move = target.lastMove.id;
|
||||
this.add("-start", target, "Encore");
|
||||
},
|
||||
onOverrideAction(pokemon) {
|
||||
return this.effectState.move;
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 14,
|
||||
onResidual(target) {
|
||||
if (target.moves.includes(this.effectState.move) && target.moveSlots[target.moves.indexOf(this.effectState.move)].pp <= 0) {
|
||||
target.removeVolatile("encore");
|
||||
}
|
||||
},
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "Encore");
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
if (!this.effectState.move || !pokemon.hasMove(this.effectState.move)) {
|
||||
return;
|
||||
}
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id !== this.effectState.move) {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
extrasensory: {
|
||||
inherit: true,
|
||||
basePowerCallback(pokemon, target) {
|
||||
if (target.volatiles["minimize"])
|
||||
return 160;
|
||||
return 80;
|
||||
}
|
||||
},
|
||||
fakeout: {
|
||||
inherit: true,
|
||||
flags: { protect: 1, mirror: 1 }
|
||||
},
|
||||
feintattack: {
|
||||
inherit: true,
|
||||
flags: { protect: 1, mirror: 1 }
|
||||
},
|
||||
flash: {
|
||||
inherit: true,
|
||||
accuracy: 70
|
||||
},
|
||||
fly: {
|
||||
inherit: true,
|
||||
basePower: 70
|
||||
},
|
||||
followme: {
|
||||
inherit: true,
|
||||
volatileStatus: void 0,
|
||||
slotCondition: "followme",
|
||||
condition: {
|
||||
duration: 1,
|
||||
onStart(target, source, effect) {
|
||||
this.add("-singleturn", target, "move: Follow Me");
|
||||
this.effectState.slot = target.getSlot();
|
||||
},
|
||||
onFoeRedirectTargetPriority: 1,
|
||||
onFoeRedirectTarget(target, source, source2, move) {
|
||||
const userSlot = this.getAtSlot(this.effectState.slot);
|
||||
if (this.validTarget(userSlot, source, move.target)) {
|
||||
return userSlot;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
foresight: {
|
||||
inherit: true,
|
||||
accuracy: 100
|
||||
},
|
||||
furycutter: {
|
||||
inherit: true,
|
||||
onHit(target, source) {
|
||||
source.addVolatile("furycutter");
|
||||
}
|
||||
},
|
||||
gigadrain: {
|
||||
inherit: true,
|
||||
pp: 5
|
||||
},
|
||||
glare: {
|
||||
inherit: true,
|
||||
ignoreImmunity: false
|
||||
},
|
||||
hiddenpower: {
|
||||
inherit: true,
|
||||
category: "Physical",
|
||||
onModifyMove(move, pokemon) {
|
||||
move.type = pokemon.hpType || "Dark";
|
||||
const specialTypes = ["Fire", "Water", "Grass", "Ice", "Electric", "Dark", "Psychic", "Dragon"];
|
||||
move.category = specialTypes.includes(move.type) ? "Special" : "Physical";
|
||||
}
|
||||
},
|
||||
highjumpkick: {
|
||||
inherit: true,
|
||||
basePower: 85,
|
||||
onMoveFail(target, source, move) {
|
||||
if (target.runImmunity("Fighting")) {
|
||||
const damage = this.actions.getDamage(source, target, move, true);
|
||||
if (typeof damage !== "number")
|
||||
throw new Error("HJK recoil failed");
|
||||
this.damage(this.clampIntRange(damage / 2, 1, Math.floor(target.maxhp / 2)), source, source, move);
|
||||
}
|
||||
}
|
||||
},
|
||||
hypnosis: {
|
||||
inherit: true,
|
||||
accuracy: 60
|
||||
},
|
||||
jumpkick: {
|
||||
inherit: true,
|
||||
basePower: 70,
|
||||
onMoveFail(target, source, move) {
|
||||
if (target.runImmunity("Fighting")) {
|
||||
const damage = this.actions.getDamage(source, target, move, true);
|
||||
if (typeof damage !== "number")
|
||||
throw new Error("Jump Kick didn't recoil");
|
||||
this.damage(this.clampIntRange(damage / 2, 1, Math.floor(target.maxhp / 2)), source, source, move);
|
||||
}
|
||||
}
|
||||
},
|
||||
leafblade: {
|
||||
inherit: true,
|
||||
basePower: 70
|
||||
},
|
||||
lockon: {
|
||||
inherit: true,
|
||||
accuracy: 100
|
||||
},
|
||||
megadrain: {
|
||||
inherit: true,
|
||||
pp: 10
|
||||
},
|
||||
memento: {
|
||||
inherit: true,
|
||||
accuracy: true
|
||||
},
|
||||
mindreader: {
|
||||
inherit: true,
|
||||
accuracy: 100
|
||||
},
|
||||
mimic: {
|
||||
inherit: true,
|
||||
flags: { protect: 1, bypasssub: 1, allyanim: 1, failencore: 1, noassist: 1, failmimic: 1 }
|
||||
},
|
||||
mirrorcoat: {
|
||||
inherit: true,
|
||||
condition: {
|
||||
duration: 1,
|
||||
noCopy: true,
|
||||
onStart(target, source, move) {
|
||||
this.effectState.slot = null;
|
||||
this.effectState.damage = 0;
|
||||
},
|
||||
onRedirectTargetPriority: -1,
|
||||
onRedirectTarget(target, source, source2) {
|
||||
if (source !== this.effectState.target || !this.effectState.slot)
|
||||
return;
|
||||
return this.getAtSlot(this.effectState.slot);
|
||||
},
|
||||
onDamagePriority: -101,
|
||||
onDamage(damage, target, source, effect) {
|
||||
if (effect.effectType === "Move" && !source.isAlly(target) && effect.category === "Special" && effect.id !== "hiddenpower") {
|
||||
this.effectState.slot = source.getSlot();
|
||||
this.effectState.damage = 2 * damage;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mirrormove: {
|
||||
inherit: true,
|
||||
onTryHit() {
|
||||
},
|
||||
onHit(pokemon) {
|
||||
const noMirror = [
|
||||
"assist",
|
||||
"curse",
|
||||
"doomdesire",
|
||||
"focuspunch",
|
||||
"futuresight",
|
||||
"magiccoat",
|
||||
"metronome",
|
||||
"mimic",
|
||||
"mirrormove",
|
||||
"naturepower",
|
||||
"psychup",
|
||||
"roleplay",
|
||||
"sketch",
|
||||
"sleeptalk",
|
||||
"spikes",
|
||||
"spitup",
|
||||
"taunt",
|
||||
"teeterdance",
|
||||
"transform"
|
||||
];
|
||||
const lastAttackedBy = pokemon.getLastAttackedBy();
|
||||
if (!lastAttackedBy?.source.lastMove || !lastAttackedBy.move) {
|
||||
return false;
|
||||
}
|
||||
if (noMirror.includes(lastAttackedBy.move) || !lastAttackedBy.source.hasMove(lastAttackedBy.move)) {
|
||||
return false;
|
||||
}
|
||||
this.actions.useMove(lastAttackedBy.move, pokemon);
|
||||
},
|
||||
target: "self"
|
||||
},
|
||||
naturepower: {
|
||||
inherit: true,
|
||||
accuracy: 95,
|
||||
onHit(target) {
|
||||
this.actions.useMove("swift", target);
|
||||
}
|
||||
},
|
||||
needlearm: {
|
||||
inherit: true,
|
||||
basePowerCallback(pokemon, target) {
|
||||
if (target.volatiles["minimize"])
|
||||
return 120;
|
||||
return 60;
|
||||
}
|
||||
},
|
||||
nightmare: {
|
||||
inherit: true,
|
||||
accuracy: true
|
||||
},
|
||||
odorsleuth: {
|
||||
inherit: true,
|
||||
accuracy: 100
|
||||
},
|
||||
outrage: {
|
||||
inherit: true,
|
||||
basePower: 90
|
||||
},
|
||||
overheat: {
|
||||
inherit: true,
|
||||
flags: { contact: 1, protect: 1, mirror: 1 }
|
||||
},
|
||||
petaldance: {
|
||||
inherit: true,
|
||||
basePower: 70
|
||||
},
|
||||
recover: {
|
||||
inherit: true,
|
||||
pp: 20
|
||||
},
|
||||
rocksmash: {
|
||||
inherit: true,
|
||||
basePower: 20
|
||||
},
|
||||
sketch: {
|
||||
inherit: true,
|
||||
flags: { bypasssub: 1, failencore: 1, noassist: 1, failmimic: 1 }
|
||||
},
|
||||
sleeptalk: {
|
||||
inherit: true,
|
||||
onHit(pokemon) {
|
||||
const moves = [];
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
const moveid = moveSlot.id;
|
||||
const pp = moveSlot.pp;
|
||||
const move = this.dex.moves.get(moveid);
|
||||
if (moveid && !move.flags["nosleeptalk"] && !move.flags["charge"]) {
|
||||
moves.push({ move: moveid, pp });
|
||||
}
|
||||
}
|
||||
if (!moves.length) {
|
||||
return false;
|
||||
}
|
||||
const randomMove = this.sample(moves);
|
||||
if (!randomMove.pp) {
|
||||
this.add("cant", pokemon, "nopp", randomMove.move);
|
||||
return;
|
||||
}
|
||||
this.actions.useMove(randomMove.move, pokemon);
|
||||
}
|
||||
},
|
||||
spite: {
|
||||
inherit: true,
|
||||
onHit(target) {
|
||||
const roll = this.random(2, 6);
|
||||
if (target.lastMove && target.deductPP(target.lastMove.id, roll)) {
|
||||
this.add("-activate", target, "move: Spite", target.lastMove.id, roll);
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
stockpile: {
|
||||
inherit: true,
|
||||
pp: 10,
|
||||
condition: {
|
||||
noCopy: true,
|
||||
onStart(target) {
|
||||
this.effectState.layers = 1;
|
||||
this.add("-start", target, "stockpile" + this.effectState.layers);
|
||||
},
|
||||
onRestart(target) {
|
||||
if (this.effectState.layers >= 3)
|
||||
return false;
|
||||
this.effectState.layers++;
|
||||
this.add("-start", target, "stockpile" + this.effectState.layers);
|
||||
},
|
||||
onEnd(target) {
|
||||
this.effectState.layers = 0;
|
||||
this.add("-end", target, "Stockpile");
|
||||
}
|
||||
}
|
||||
},
|
||||
struggle: {
|
||||
inherit: true,
|
||||
flags: { contact: 1, protect: 1, noassist: 1, failencore: 1, failmimic: 1 },
|
||||
accuracy: 100,
|
||||
recoil: [1, 4],
|
||||
struggleRecoil: false
|
||||
},
|
||||
surf: {
|
||||
inherit: true,
|
||||
target: "allAdjacentFoes"
|
||||
},
|
||||
taunt: {
|
||||
inherit: true,
|
||||
flags: { protect: 1, bypasssub: 1 },
|
||||
condition: {
|
||||
duration: 2,
|
||||
onStart(target) {
|
||||
this.add("-start", target, "move: Taunt");
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 15,
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "move: Taunt", "[silent]");
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (this.dex.moves.get(moveSlot.move).category === "Status") {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
},
|
||||
onBeforeMove(attacker, defender, move) {
|
||||
if (move.category === "Status") {
|
||||
this.add("cant", attacker, "move: Taunt", move);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
teeterdance: {
|
||||
inherit: true,
|
||||
flags: { protect: 1 }
|
||||
},
|
||||
tickle: {
|
||||
inherit: true,
|
||||
flags: { protect: 1, reflectable: 1, mirror: 1, bypasssub: 1 }
|
||||
},
|
||||
uproar: {
|
||||
inherit: true,
|
||||
condition: {
|
||||
onStart(target) {
|
||||
this.add("-start", target, "Uproar");
|
||||
this.effectState.duration = this.random(2, 6);
|
||||
},
|
||||
onResidual(target) {
|
||||
if (target.volatiles["throatchop"]) {
|
||||
target.removeVolatile("uproar");
|
||||
return;
|
||||
}
|
||||
if (target.lastMove && target.lastMove.id === "struggle") {
|
||||
delete target.volatiles["uproar"];
|
||||
}
|
||||
this.add("-start", target, "Uproar", "[upkeep]");
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 11,
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "Uproar");
|
||||
},
|
||||
onLockMove: "uproar",
|
||||
onAnySetStatus(status, pokemon) {
|
||||
if (status.id === "slp") {
|
||||
if (pokemon === this.effectState.target) {
|
||||
this.add("-fail", pokemon, "slp", "[from] Uproar", "[msg]");
|
||||
} else {
|
||||
this.add("-fail", pokemon, "slp", "[from] Uproar");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
vinewhip: {
|
||||
inherit: true,
|
||||
pp: 10
|
||||
},
|
||||
volttackle: {
|
||||
inherit: true,
|
||||
secondary: null
|
||||
},
|
||||
waterfall: {
|
||||
inherit: true,
|
||||
secondary: null
|
||||
},
|
||||
weatherball: {
|
||||
inherit: true,
|
||||
onModifyMove(move) {
|
||||
switch (this.field.effectiveWeather()) {
|
||||
case "sunnyday":
|
||||
move.type = "Fire";
|
||||
move.category = "Special";
|
||||
break;
|
||||
case "raindance":
|
||||
move.type = "Water";
|
||||
move.category = "Special";
|
||||
break;
|
||||
case "sandstorm":
|
||||
move.type = "Rock";
|
||||
break;
|
||||
case "hail":
|
||||
move.type = "Ice";
|
||||
move.category = "Special";
|
||||
break;
|
||||
}
|
||||
if (this.field.effectiveWeather())
|
||||
move.basePower *= 2;
|
||||
}
|
||||
},
|
||||
zapcannon: {
|
||||
inherit: true,
|
||||
basePower: 100
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=moves.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/moves.ts"],
|
||||
"sourcesContent": ["/**\r\n * Gen 3 moves\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\tabsorb: {\r\n\t\tinherit: true,\r\n\t\tpp: 20,\r\n\t},\r\n\tacid: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 10,\r\n\t\t\tboosts: {\r\n\t\t\t\tdef: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tancientpower: {\r\n\t\tinherit: true,\r\n\t\tflags: {contact: 1, protect: 1, mirror: 1},\r\n\t},\r\n\tastonish: {\r\n\t\tinherit: true,\r\n\t\tbasePowerCallback(pokemon, target) {\r\n\t\t\tif (target.volatiles['minimize']) return 60;\r\n\t\t\treturn 30;\r\n\t\t},\r\n\t},\r\n\tbeatup: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move, pokemon) {\r\n\t\t\tpokemon.addVolatile('beatup');\r\n\t\t\tmove.type = '???';\r\n\t\t\tmove.category = 'Special';\r\n\t\t\tmove.allies = pokemon.side.pokemon.filter(ally => !ally.fainted && !ally.status);\r\n\t\t\tmove.multihit = move.allies.length;\r\n\t\t},\r\n\t\tcondition: {\r\n\t\t\tduration: 1,\r\n\t\t\tonModifySpAPriority: -101,\r\n\t\t\tonModifySpA(atk, pokemon, defender, move) {\r\n\t\t\t\t// https://www.smogon.com/forums/posts/8992145/\r\n\t\t\t\t// this.add('-activate', pokemon, 'move: Beat Up', '[of] ' + move.allies![0].name);\r\n\t\t\t\tthis.event.modifier = 1;\r\n\t\t\t\treturn move.allies!.shift()!.species.baseStats.atk;\r\n\t\t\t},\r\n\t\t\tonFoeModifySpDPriority: -101,\r\n\t\t\tonFoeModifySpD(def, pokemon) {\r\n\t\t\t\tthis.event.modifier = 1;\r\n\t\t\t\treturn pokemon.species.baseStats.def;\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tbide: {\r\n\t\tinherit: true,\r\n\t\taccuracy: 100,\r\n\t\tpriority: 0,\r\n\t\tcondition: {\r\n\t\t\tduration: 3,\r\n\t\t\tonLockMove: 'bide',\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.effectState.totalDamage = 0;\r\n\t\t\t\tthis.add('-start', pokemon, 'move: Bide');\r\n\t\t\t},\r\n\t\t\tonDamagePriority: -101,\r\n\t\t\tonDamage(damage, target, source, move) {\r\n\t\t\t\tif (!move || move.effectType !== 'Move' || !source) return;\r\n\t\t\t\tthis.effectState.totalDamage += damage;\r\n\t\t\t\tthis.effectState.lastDamageSource = source;\r\n\t\t\t},\r\n\t\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\t\tif (this.effectState.duration === 1) {\r\n\t\t\t\t\tthis.add('-end', pokemon, 'move: Bide');\r\n\t\t\t\t\tif (!this.effectState.totalDamage) {\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttarget = this.effectState.lastDamageSource;\r\n\t\t\t\t\tif (!target) {\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!target.isActive) {\r\n\t\t\t\t\t\tconst possibleTarget = this.getRandomTarget(pokemon, this.dex.moves.get('pound'));\r\n\t\t\t\t\t\tif (!possibleTarget) {\r\n\t\t\t\t\t\t\tthis.add('-miss', pokemon);\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttarget = possibleTarget;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst moveData = {\r\n\t\t\t\t\t\tid: 'bide' as ID,\r\n\t\t\t\t\t\tname: \"Bide\",\r\n\t\t\t\t\t\taccuracy: 100,\r\n\t\t\t\t\t\tdamage: this.effectState.totalDamage * 2,\r\n\t\t\t\t\t\tcategory: \"Physical\",\r\n\t\t\t\t\t\tpriority: 0,\r\n\t\t\t\t\t\tflags: {contact: 1, protect: 1},\r\n\t\t\t\t\t\teffectType: 'Move',\r\n\t\t\t\t\t\ttype: 'Normal',\r\n\t\t\t\t\t} as unknown as ActiveMove;\r\n\t\t\t\t\tthis.actions.tryMoveHit(target, pokemon, moveData);\r\n\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.add('-activate', pokemon, 'move: Bide');\r\n\t\t\t},\r\n\t\t\tonMoveAborted(pokemon) {\r\n\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t},\r\n\t\t\tonEnd(pokemon) {\r\n\t\t\t\tthis.add('-end', pokemon, 'move: Bide', '[silent]');\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tblizzard: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove() { },\r\n\t},\r\n\tbrickbreak: {\r\n\t\tinherit: true,\r\n\t\tonTryHit(target, source) {\r\n\t\t\t// will shatter screens through sub, before you hit\r\n\t\t\tconst foe = source.side.foe;\r\n\t\t\tfoe.removeSideCondition('reflect');\r\n\t\t\tfoe.removeSideCondition('lightscreen');\r\n\t\t},\r\n\t},\r\n\tcharge: {\r\n\t\tinherit: true,\r\n\t\tboosts: null,\r\n\t},\r\n\tconversion: {\r\n\t\tinherit: true,\r\n\t\tonHit(target) {\r\n\t\t\tconst possibleTypes = target.moveSlots.map(moveSlot => {\r\n\t\t\t\tconst move = this.dex.moves.get(moveSlot.id);\r\n\t\t\t\tif (move.id !== 'curse' && !target.hasType(move.type)) {\r\n\t\t\t\t\treturn move.type;\r\n\t\t\t\t}\r\n\t\t\t\treturn '';\r\n\t\t\t}).filter(type => type);\r\n\t\t\tif (!possibleTypes.length) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tconst type = this.sample(possibleTypes);\r\n\r\n\t\t\tif (!target.setType(type)) return false;\r\n\t\t\tthis.add('-start', target, 'typechange', type);\r\n\t\t},\r\n\t},\r\n\tcounter: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tduration: 1,\r\n\t\t\tnoCopy: true,\r\n\t\t\tonStart(target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AAO,QAAQ,SAAS,IAAI;AACxC,gBAAI,CAAC,SAAS,IAAI;AACjB,qBAAO;AAAA,YACR,OAAO;AACN,mBAAK,IAAI,UAAU,SAAS,WAAW,SAAS,IAAI;AACpD,mBAAK,YAAY,OAAO,QAAQ,SAAS;AACzC;AAAA,YACD;AAAA,UACD;AAAA,QACD;AACA,eAAO;AAAA,MACR;AAAA,MACA,MAAM,SAAS;AACd,aAAK,IAAI,QAAQ,SAAS,eAAe;AAAA,MAC1C;AAAA,MACA,aAAa,UAAU,UAAU,MAAM;AACtC,YAAI,KAAK,OAAO,KAAK,YAAY,MAAM;AACtC,eAAK,IAAI,QAAQ,UAAU,WAAW,IAAI;AAC1C,iBAAO;AAAA,QACR;AAAA,MACD;AAAA,MACA,cAAc,SAAS;AACtB,mBAAW,YAAY,QAAQ,WAAW;AACzC,cAAI,SAAS,OAAO,KAAK,YAAY,MAAM;AAC1C,oBAAQ,YAAY,SAAS,EAAE;AAAA,UAChC;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,MAAM;AAAA,IACL,SAAS;AAAA,IACT,WAAW;AAAA,EACZ;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,MAAM,QAAQ,QAAQ;AACrB,UAAI,CAAC,OAAO,KAAK,iBAAiB,QAAQ,YAAY;AAAG,eAAO;AAChE,YAAM,WAAW;AAAA,QAChB,MAAM;AAAA,QACN,WAAW;AAAA,QACX,UAAU;AAAA,QACV,OAAO,CAAC;AAAA,QACR,UAAU;AAAA,QACV,MAAM;AAAA,MACP;AACA,YAAM,SAAS,KAAK,QAAQ,UAAU,QAAQ,QAAQ,UAAU,IAALine truncated
|
||||
"names": ["type"]
|
||||
}
|
||||
@@ -0,0 +1,882 @@
|
||||
{
|
||||
"venusaur": {
|
||||
"level": 82,
|
||||
"moves": ["curse", "earthquake", "hiddenpowerrock", "leechseed", "sleeppowder", "sludgebomb", "swordsdance", "synthesis"]
|
||||
},
|
||||
"charizard": {
|
||||
"level": 80,
|
||||
"moves": ["bellydrum", "dragondance", "earthquake", "fireblast", "hiddenpowerflying", "substitute"]
|
||||
},
|
||||
"blastoise": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "icebeam", "mirrorcoat", "rest", "roar", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"butterfree": {
|
||||
"level": 90,
|
||||
"moves": ["gigadrain", "hiddenpowerfire", "morningsun", "psychic", "sleeppowder", "stunspore", "toxic"]
|
||||
},
|
||||
"beedrill": {
|
||||
"level": 90,
|
||||
"moves": ["brickbreak", "doubleedge", "endure", "hiddenpowerbug", "sludgebomb", "swordsdance"]
|
||||
},
|
||||
"pidgeot": {
|
||||
"level": 88,
|
||||
"moves": ["aerialace", "hiddenpowerground", "quickattack", "return", "substitute", "toxic"]
|
||||
},
|
||||
"raticate": {
|
||||
"level": 88,
|
||||
"moves": ["endeavor", "hiddenpowerground", "quickattack", "return", "reversal", "shadowball", "substitute"]
|
||||
},
|
||||
"fearow": {
|
||||
"level": 84,
|
||||
"moves": ["agility", "batonpass", "drillpeck", "hiddenpowerground", "quickattack", "return", "substitute"]
|
||||
},
|
||||
"arbok": {
|
||||
"level": 90,
|
||||
"moves": ["doubleedge", "earthquake", "hiddenpowerfire", "rest", "rockslide", "sleeptalk", "sludgebomb"]
|
||||
},
|
||||
"pikachu": {
|
||||
"level": 88,
|
||||
"moves": ["hiddenpowerice", "substitute", "surf", "thunderbolt"]
|
||||
},
|
||||
"raichu": {
|
||||
"level": 84,
|
||||
"moves": ["encore", "focuspunch", "hiddenpowergrass", "hiddenpowerice", "substitute", "surf", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"sandslash": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "hiddenpowerbug", "rapidspin", "rockslide", "swordsdance", "toxic"]
|
||||
},
|
||||
"nidoqueen": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "fireblast", "icebeam", "shadowball", "sludgebomb", "superpower"]
|
||||
},
|
||||
"nidoking": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "fireblast", "icebeam", "megahorn", "sludgebomb", "substitute", "thunderbolt"]
|
||||
},
|
||||
"clefable": {
|
||||
"level": 84,
|
||||
"moves": ["calmmind", "counter", "icebeam", "return", "shadowball", "softboiled", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"ninetales": {
|
||||
"level": 84,
|
||||
"moves": ["fireblast", "flamethrower", "hiddenpowergrass", "hypnosis", "substitute", "toxic", "willowisp"]
|
||||
},
|
||||
"wigglytuff": {
|
||||
"level": 90,
|
||||
"moves": ["fireblast", "icebeam", "protect", "return", "thunderbolt", "toxic", "wish"]
|
||||
},
|
||||
"vileplume": {
|
||||
"level": 84,
|
||||
"moves": ["aromatherapy", "hiddenpowerfire", "sleeppowder", "sludgebomb", "solarbeam", "sunnyday", "synthesis"]
|
||||
},
|
||||
"parasect": {
|
||||
"level": 90,
|
||||
"moves": ["aromatherapy", "gigadrain", "hiddenpowerbug", "return", "spore", "stunspore", "swordsdance"]
|
||||
},
|
||||
"venomoth": {
|
||||
"level": 88,
|
||||
"moves": ["batonpass", "hiddenpowerground", "signalbeam", "sleeppowder", "sludgebomb", "substitute"]
|
||||
},
|
||||
"dugtrio": {
|
||||
"level": 80,
|
||||
"moves": ["aerialace", "earthquake", "hiddenpowerbug", "rockslide", "substitute"]
|
||||
},
|
||||
"persian": {
|
||||
"level": 84,
|
||||
"moves": ["fakeout", "hiddenpowerground", "hypnosis", "irontail", "return", "shadowball", "substitute"]
|
||||
},
|
||||
"golduck": {
|
||||
"level": 84,
|
||||
"moves": ["calmmind", "hiddenpowergrass", "hydropump", "hypnosis", "icebeam", "substitute", "surf"]
|
||||
},
|
||||
"primeape": {
|
||||
"level": 84,
|
||||
"moves": ["bulkup", "crosschop", "earthquake", "hiddenpowerghost", "rockslide", "substitute"]
|
||||
},
|
||||
"arcanine": {
|
||||
"level": 84,
|
||||
"moves": ["extremespeed", "fireblast", "flamethrower", "hiddenpowergrass", "rest", "sleeptalk", "toxic"]
|
||||
},
|
||||
"poliwrath": {
|
||||
"level": 84,
|
||||
"moves": ["brickbreak", "bulkup", "hiddenpowerghost", "hydropump", "hypnosis", "icebeam", "substitute"]
|
||||
},
|
||||
"alakazam": {
|
||||
"level": 82,
|
||||
"moves": ["calmmind", "encore", "firepunch", "icepunch", "psychic", "recover", "substitute"]
|
||||
},
|
||||
"machamp": {
|
||||
"level": 82,
|
||||
"moves": ["bulkup", "crosschop", "earthquake", "hiddenpowerghost", "rest", "rockslide", "sleeptalk"]
|
||||
},
|
||||
"victreebel": {
|
||||
"level": 84,
|
||||
"moves": ["hiddenpowerfire", "sleeppowder", "sludgebomb", "solarbeam", "sunnyday"]
|
||||
},
|
||||
"tentacruel": {
|
||||
"level": 84,
|
||||
"moves": ["gigadrain", "haze", "hydropump", "icebeam", "rapidspin", "surf", "toxic"]
|
||||
},
|
||||
"golem": {
|
||||
"level": 84,
|
||||
"moves": ["doubleedge", "earthquake", "explosion", "hiddenpowerbug", "rockslide", "toxic"]
|
||||
},
|
||||
"rapidash": {
|
||||
"level": 84,
|
||||
"moves": ["fireblast", "hiddenpowergrass", "hiddenpowerrock", "substitute", "toxic"]
|
||||
},
|
||||
"slowbro": {
|
||||
"level": 82,
|
||||
"moves": ["calmmind", "fireblast", "icebeam", "psychic", "rest", "sleeptalk", "surf", "thunderwave"]
|
||||
},
|
||||
"magneton": {
|
||||
"level": 80,
|
||||
"moves": ["hiddenpowergrass", "hiddenpowerice", "rest", "sleeptalk", "thunderbolt", "toxic"]
|
||||
},
|
||||
"farfetchd": {
|
||||
"level": 90,
|
||||
"moves": ["agility", "batonpass", "hiddenpowerflying", "return", "swordsdance"]
|
||||
},
|
||||
"dodrio": {
|
||||
"level": 82,
|
||||
"moves": ["drillpeck", "flail", "hiddenpowerground", "quickattack", "return", "substitute"]
|
||||
},
|
||||
"dewgong": {
|
||||
"level": 88,
|
||||
"moves": ["encore", "hiddenpowergrass", "icebeam", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"muk": {
|
||||
"level": 84,
|
||||
"moves": ["brickbreak", "curse", "explosion", "fireblast", "hiddenpowerghost", "rest", "sludgebomb"]
|
||||
},
|
||||
"cloyster": {
|
||||
"level": 80,
|
||||
"moves": ["explosion", "icebeam", "rapidspin", "spikes", "surf", "toxic"]
|
||||
},
|
||||
"gengar": {
|
||||
"level": 80,
|
||||
"moves": ["destinybond", "explosion", "firepunch", "hypnosis", "icepunch", "substitute", "thunderbolt", "willowisp"]
|
||||
},
|
||||
"hypno": {
|
||||
"level": 84,
|
||||
"moves": ["batonpass", "calmmind", "firepunch", "hypnosis", "protect", "psychic", "toxic", "wish"]
|
||||
},
|
||||
"kingler": {
|
||||
"level": 90,
|
||||
"moves": ["doubleedge", "hiddenpowerghost", "hiddenpowerground", "surf", "swordsdance"]
|
||||
},
|
||||
"electrode": {
|
||||
"level": 84,
|
||||
"moves": ["explosion", "hiddenpowergrass", "hiddenpowerice", "substitute", "thunderbolt", "thunderwave", "toxic"]
|
||||
},
|
||||
"exeggutor": {
|
||||
"level": 82,
|
||||
"moves": ["explosion", "gigadrain", "hiddenpowerfire", "hiddenpowerice", "leechseed", "psychic", "sleeppowder", "solarbeam", "sunnyday"]
|
||||
},
|
||||
"marowak": {
|
||||
"level": 82,
|
||||
"moves": ["bonemerang", "doubleedge", "earthquake", "rockslide", "swordsdance"]
|
||||
},
|
||||
"hitmonlee": {
|
||||
"level": 84,
|
||||
"moves": ["bulkup", "earthquake", "hiddenpowerghost", "highjumpkick", "machpunch", "rockslide", "substitute"]
|
||||
},
|
||||
"hitmonchan": {
|
||||
"level": 88,
|
||||
"moves": ["bulkup", "earthquake", "hiddenpowerghost", "machpunch", "rapidspin", "skyuppercut", "toxic"]
|
||||
},
|
||||
"lickitung": {
|
||||
"level": 90,
|
||||
"moves": ["counter", "healbell", "protect", "return", "seismictoss", "toxic", "wish"]
|
||||
},
|
||||
"weezing": {
|
||||
"level": 82,
|
||||
"moves": ["explosion", "fireblast", "haze", "painsplit", "sludgebomb", "toxic", "willowisp"]
|
||||
},
|
||||
"rhydon": {
|
||||
"level": 82,
|
||||
"moves": ["doubleedge", "earthquake", "megahorn", "rockslide", "substitute", "swordsdance"]
|
||||
},
|
||||
"tangela": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowergrass", "leechseed", "morningsun", "sleeppowder", "stunspore"]
|
||||
},
|
||||
"kangaskhan": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "fakeout", "focuspunch", "rest", "return", "shadowball", "substitute", "toxic"]
|
||||
},
|
||||
"seaking": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowergrass", "hydropump", "icebeam", "megahorn", "raindance"]
|
||||
},
|
||||
"starmie": {
|
||||
"level": 80,
|
||||
"moves": ["hydropump", "icebeam", "psychic", "recover", "surf", "thunderbolt"]
|
||||
},
|
||||
"mrmime": {
|
||||
"level": 84,
|
||||
"moves": ["barrier", "batonpass", "calmmind", "encore", "firepunch", "hypnosis", "psychic", "substitute", "thunderbolt"]
|
||||
},
|
||||
"scyther": {
|
||||
"level": 84,
|
||||
"moves": ["aerialace", "batonpass", "hiddenpowerground", "hiddenpowerrock", "quickattack", "silverwind", "swordsdance"]
|
||||
},
|
||||
"jynx": {
|
||||
"level": 82,
|
||||
"moves": ["calmmind", "hiddenpowerfire", "icebeam", "lovelykiss", "psychic", "substitute"]
|
||||
},
|
||||
"electabuzz": {
|
||||
"level": 84,
|
||||
"moves": ["crosschop", "firepunch", "focuspunch", "hiddenpowergrass", "icepunch", "substitute", "thunderbolt"]
|
||||
},
|
||||
"magmar": {
|
||||
"level": 84,
|
||||
"moves": ["crosschop", "fireblast", "flamethrower", "hiddenpowergrass", "psychic", "substitute", "thunderpunch"]
|
||||
},
|
||||
"pinsir": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "hiddenpowerbug", "return", "rockslide", "swordsdance"]
|
||||
},
|
||||
"tauros": {
|
||||
"level": 82,
|
||||
"moves": ["doubleedge", "earthquake", "hiddenpowerghost", "hiddenpowerrock", "return"]
|
||||
},
|
||||
"gyarados": {
|
||||
"level": 80,
|
||||
"moves": ["doubleedge", "dragondance", "earthquake", "hiddenpowerflying", "hydropump", "taunt"]
|
||||
},
|
||||
"lapras": {
|
||||
"level": 82,
|
||||
"moves": ["healbell", "icebeam", "rest", "sleeptalk", "surf", "thunderbolt", "toxic"]
|
||||
},
|
||||
"ditto": {
|
||||
"level": 100,
|
||||
"moves": ["transform"]
|
||||
},
|
||||
"vaporeon": {
|
||||
"level": 82,
|
||||
"moves": ["icebeam", "protect", "surf", "toxic", "wish"]
|
||||
},
|
||||
"jolteon": {
|
||||
"level": 80,
|
||||
"moves": ["batonpass", "hiddenpowerice", "substitute", "thunderbolt", "toxic", "wish"]
|
||||
},
|
||||
"flareon": {
|
||||
"level": 88,
|
||||
"moves": ["doubleedge", "fireblast", "hiddenpowergrass", "protect", "shadowball", "toxic", "wish"]
|
||||
},
|
||||
"omastar": {
|
||||
"level": 84,
|
||||
"moves": ["hiddenpowergrass", "hydropump", "icebeam", "raindance", "spikes", "surf"]
|
||||
},
|
||||
"kabutops": {
|
||||
"level": 84,
|
||||
"moves": ["brickbreak", "doubleedge", "hiddenpowerground", "rockslide", "surf", "swordsdance"]
|
||||
},
|
||||
"aerodactyl": {
|
||||
"level": 80,
|
||||
"moves": ["doubleedge", "earthquake", "hiddenpowerflying", "rockslide", "substitute"]
|
||||
},
|
||||
"snorlax": {
|
||||
"level": 80,
|
||||
"moves": ["bodyslam", "curse", "earthquake", "rest", "return", "selfdestruct", "shadowball", "sleeptalk"]
|
||||
},
|
||||
"articuno": {
|
||||
"level": 82,
|
||||
"moves": ["healbell", "hiddenpowerfire", "icebeam", "protect", "rest", "roar", "sleeptalk", "toxic"]
|
||||
},
|
||||
"zapdos": {
|
||||
"level": 80,
|
||||
"moves": ["agility", "batonpass", "hiddenpowerice", "substitute", "thunderbolt", "thunderwave", "toxic"]
|
||||
},
|
||||
"moltres": {
|
||||
"level": 80,
|
||||
"moves": ["fireblast", "flamethrower", "hiddenpowergrass", "morningsun", "substitute", "toxic", "willowisp"]
|
||||
},
|
||||
"dragonite": {
|
||||
"level": 82,
|
||||
"moves": ["doubleedge", "dragondance", "earthquake", "flamethrower", "healbell", "hiddenpowerflying", "icebeam", "substitute"]
|
||||
},
|
||||
"mewtwo": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "flamethrower", "icebeam", "psychic", "recover", "substitute", "thunderbolt"]
|
||||
},
|
||||
"mew": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "explosion", "flamethrower", "icebeam", "psychic", "softboiled", "thunderbolt", "thunderwave", "transform"]
|
||||
},
|
||||
"meganium": {
|
||||
"level": 84,
|
||||
"moves": ["bodyslam", "hiddenpowergrass", "leechseed", "synthesis", "toxic"]
|
||||
},
|
||||
"typhlosion": {
|
||||
"level": 82,
|
||||
"moves": ["fireblast", "flamethrower", "focuspunch", "hiddenpowergrass", "hiddenpowerice", "substitute", "thunderpunch"]
|
||||
},
|
||||
"feraligatr": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "hiddenpowerflying", "hydropump", "rockslide", "swordsdance"]
|
||||
},
|
||||
"furret": {
|
||||
"level": 90,
|
||||
"moves": ["doubleedge", "quickattack", "return", "reversal", "shadowball", "substitute", "trick"]
|
||||
},
|
||||
"noctowl": {
|
||||
"level": 90,
|
||||
"moves": ["hypnosis", "psychic", "reflect", "toxic", "whirlwind"]
|
||||
},
|
||||
"ledian": {
|
||||
"level": 90,
|
||||
"moves": ["agility", "batonpass", "lightscreen", "reflect", "silverwind", "swordsdance", "toxic"]
|
||||
},
|
||||
"ariados": {
|
||||
"level": 90,
|
||||
"moves": ["agility", "batonpass", "signalbeam", "sludgebomb", "spiderweb", "toxic"]
|
||||
},
|
||||
"crobat": {
|
||||
"level": 82,
|
||||
"moves": ["aerialace", "haze", "hiddenpowerground", "shadowball", "sludgebomb", "taunt", "toxic"]
|
||||
},
|
||||
"lanturn": {
|
||||
"level": 84,
|
||||
"moves": ["confuseray", "icebeam", "rest", "sleeptalk", "surf", "thunderbolt", "thunderwave", "toxic"]
|
||||
},
|
||||
"togetic": {
|
||||
"level": 90,
|
||||
"moves": ["charm", "encore", "flamethrower", "seismictoss", "softboiled", "thunderwave", "toxic"]
|
||||
},
|
||||
"xatu": {
|
||||
"level": 84,
|
||||
"moves": ["batonpass", "calmmind", "hiddenpowerfire", "psychic", "reflect", "wish"]
|
||||
},
|
||||
"ampharos": {
|
||||
"level": 84,
|
||||
"moves": ["firepunch", "healbell", "hiddenpowergrass", "hiddenpowerice", "thunderbolt", "toxic"]
|
||||
},
|
||||
"bellossom": {
|
||||
"level": 88,
|
||||
"moves": ["hiddenpowergrass", "leechseed", "moonlight", "sleeppowder", "sludgebomb", "stunspore"]
|
||||
},
|
||||
"azumarill": {
|
||||
"level": 84,
|
||||
"moves": ["brickbreak", "encore", "hiddenpowerghost", "hydropump", "return"]
|
||||
},
|
||||
"sudowoodo": {
|
||||
"level": 88,
|
||||
"moves": ["brickbreak", "doubleedge", "earthquake", "explosion", "rockslide", "toxic"]
|
||||
},
|
||||
"politoed": {
|
||||
"level": 84,
|
||||
"moves": ["hiddenpowergrass", "hypnosis", "icebeam", "rest", "surf", "toxic"]
|
||||
},
|
||||
"jumpluff": {
|
||||
"level": 82,
|
||||
"moves": ["encore", "hiddenpowerflying", "leechseed", "sleeppowder", "substitute", "toxic"]
|
||||
},
|
||||
"aipom": {
|
||||
"level": 90,
|
||||
"moves": ["batonpass", "doubleedge", "focuspunch", "shadowball", "substitute", "thunderwave"]
|
||||
},
|
||||
"sunflora": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowerfire", "leechseed", "razorleaf", "synthesis", "toxic"]
|
||||
},
|
||||
"yanma": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowerflying", "hypnosis", "reversal", "shadowball", "substitute"]
|
||||
},
|
||||
"quagsire": {
|
||||
"level": 84,
|
||||
"moves": ["counter", "curse", "earthquake", "hiddenpowerrock", "icebeam", "rest", "surf", "toxic"]
|
||||
},
|
||||
"espeon": {
|
||||
"level": 82,
|
||||
"moves": ["batonpass", "calmmind", "hiddenpowerfire", "morningsun", "psychic", "reflect"]
|
||||
},
|
||||
"umbreon": {
|
||||
"level": 82,
|
||||
"moves": ["batonpass", "hiddenpowerdark", "protect", "toxic", "wish"]
|
||||
},
|
||||
"murkrow": {
|
||||
"level": 88,
|
||||
"moves": ["doubleedge", "drillpeck", "hiddenpowerfighting", "hiddenpowerground", "meanlook", "perishsong", "protect", "shadowball", "substitute"]
|
||||
},
|
||||
"slowking": {
|
||||
"level": 84,
|
||||
"moves": ["calmmind", "flamethrower", "icebeam", "psychic", "rest", "sleeptalk", "surf", "thunderwave"]
|
||||
},
|
||||
"misdreavus": {
|
||||
"level": 84,
|
||||
"moves": ["calmmind", "hiddenpowerice", "meanlook", "perishsong", "protect", "substitute", "thunderbolt", "toxic"]
|
||||
},
|
||||
"unown": {
|
||||
"level": 100,
|
||||
"moves": ["hiddenpowerpsychic"]
|
||||
},
|
||||
"wobbuffet": {
|
||||
"level": 76,
|
||||
"moves": ["counter", "destinybond", "encore", "mirrorcoat"]
|
||||
},
|
||||
"girafarig": {
|
||||
"level": 84,
|
||||
"moves": ["agility", "batonpass", "calmmind", "psychic", "substitute", "thunderbolt", "thunderwave", "wish"]
|
||||
},
|
||||
"forretress": {
|
||||
"level": 80,
|
||||
"moves": ["earthquake", "explosion", "hiddenpowerbug", "rapidspin", "spikes", "toxic"]
|
||||
},
|
||||
"dunsparce": {
|
||||
"level": 88,
|
||||
"moves": ["bodyslam", "curse", "headbutt", "rest", "rockslide", "shadowball", "thunderwave"]
|
||||
},
|
||||
"gligar": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "hiddenpowerflying", "irontail", "quickattack", "rockslide", "substitute", "swordsdance"]
|
||||
},
|
||||
"steelix": {
|
||||
"level": 82,
|
||||
"moves": ["doubleedge", "earthquake", "explosion", "hiddenpowerrock", "irontail", "rest", "roar", "toxic"]
|
||||
},
|
||||
"granbull": {
|
||||
"level": 84,
|
||||
"moves": ["bulkup", "earthquake", "healbell", "overheat", "rest", "return", "shadowball", "thunderwave"]
|
||||
},
|
||||
"qwilfish": {
|
||||
"level": 84,
|
||||
"moves": ["destinybond", "hydropump", "selfdestruct", "shadowball", "sludgebomb", "spikes", "swordsdance"]
|
||||
},
|
||||
"scizor": {
|
||||
"level": 82,
|
||||
"moves": ["agility", "batonpass", "hiddenpowerground", "hiddenpowerrock", "morningsun", "silverwind", "steelwing", "swordsdance"]
|
||||
},
|
||||
"shuckle": {
|
||||
"level": 90,
|
||||
"moves": ["encore", "rest", "toxic", "wrap"]
|
||||
},
|
||||
"heracross": {
|
||||
"level": 80,
|
||||
"moves": ["brickbreak", "focuspunch", "megahorn", "rest", "rockslide", "sleeptalk", "substitute", "swordsdance"]
|
||||
},
|
||||
"sneasel": {
|
||||
"level": 84,
|
||||
"moves": ["brickbreak", "doubleedge", "hiddenpowerflying", "shadowball", "substitute", "swordsdance"]
|
||||
},
|
||||
"ursaring": {
|
||||
"level": 82,
|
||||
"moves": ["earthquake", "focuspunch", "hiddenpowerghost", "return", "swordsdance"]
|
||||
},
|
||||
"magcargo": {
|
||||
"level": 90,
|
||||
"moves": ["fireblast", "hiddenpowergrass", "rest", "sleeptalk", "toxic", "yawn"]
|
||||
},
|
||||
"piloswine": {
|
||||
"level": 90,
|
||||
"moves": ["doubleedge", "earthquake", "icebeam", "protect", "rockslide", "toxic"]
|
||||
},
|
||||
"corsola": {
|
||||
"level": 90,
|
||||
"moves": ["calmmind", "icebeam", "recover", "surf", "toxic"]
|
||||
},
|
||||
"octillery": {
|
||||
"level": 88,
|
||||
"moves": ["fireblast", "hiddenpowergrass", "icebeam", "rockblast", "surf", "thunderwave"]
|
||||
},
|
||||
"delibird": {
|
||||
"level": 90,
|
||||
"moves": ["aerialace", "focuspunch", "hiddenpowerground", "icebeam", "quickattack"]
|
||||
},
|
||||
"mantine": {
|
||||
"level": 84,
|
||||
"moves": ["haze", "hiddenpowergrass", "icebeam", "raindance", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"skarmory": {
|
||||
"level": 80,
|
||||
"moves": ["drillpeck", "hiddenpowerground", "protect", "rest", "sleeptalk", "spikes", "toxic", "whirlwind"]
|
||||
},
|
||||
"houndoom": {
|
||||
"level": 82,
|
||||
"moves": ["crunch", "fireblast", "flamethrower", "hiddenpowergrass", "pursuit", "willowisp"]
|
||||
},
|
||||
"kingdra": {
|
||||
"level": 82,
|
||||
"moves": ["hiddenpowergrass", "hydropump", "icebeam", "raindance", "substitute", "surf"]
|
||||
},
|
||||
"donphan": {
|
||||
"level": 82,
|
||||
"moves": ["earthquake", "rapidspin", "rest", "rockslide", "sleeptalk", "toxic"]
|
||||
},
|
||||
"porygon2": {
|
||||
"level": 82,
|
||||
"moves": ["icebeam", "recover", "return", "thunderbolt", "thunderwave", "toxic"]
|
||||
},
|
||||
"stantler": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "hypnosis", "return", "shadowball", "thunderbolt"]
|
||||
},
|
||||
"smeargle": {
|
||||
"level": 82,
|
||||
"moves": ["encore", "explosion", "spikes", "spore"]
|
||||
},
|
||||
"hitmontop": {
|
||||
"level": 84,
|
||||
"moves": ["bulkup", "earthquake", "hiddenpowerghost", "highjumpkick", "machpunch", "rockslide", "toxic"]
|
||||
},
|
||||
"miltank": {
|
||||
"level": 82,
|
||||
"moves": ["bodyslam", "curse", "earthquake", "healbell", "milkdrink", "toxic"]
|
||||
},
|
||||
"blissey": {
|
||||
"level": 80,
|
||||
"moves": ["aromatherapy", "calmmind", "icebeam", "seismictoss", "softboiled", "thunderbolt", "thunderwave", "toxic"]
|
||||
},
|
||||
"raikou": {
|
||||
"level": 82,
|
||||
"moves": ["calmmind", "crunch", "hiddenpowergrass", "hiddenpowerice", "rest", "sleeptalk", "substitute", "thunderbolt"]
|
||||
},
|
||||
"entei": {
|
||||
"level": 82,
|
||||
"moves": ["bodyslam", "calmmind", "fireblast", "flamethrower", "hiddenpowergrass", "hiddenpowerice", "solarbeam", "substitute", "sunnyday"]
|
||||
},
|
||||
"suicune": {
|
||||
"level": 80,
|
||||
"moves": ["calmmind", "icebeam", "rest", "sleeptalk", "substitute", "surf", "toxic"]
|
||||
},
|
||||
"tyranitar": {
|
||||
"level": 80,
|
||||
"moves": ["dragondance", "earthquake", "fireblast", "focuspunch", "hiddenpowerbug", "icebeam", "pursuit", "rockslide", "substitute"]
|
||||
},
|
||||
"lugia": {
|
||||
"level": 76,
|
||||
"moves": ["aeroblast", "calmmind", "earthquake", "icebeam", "recover", "substitute", "thunderbolt", "toxic"]
|
||||
},
|
||||
"hooh": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "earthquake", "recover", "sacredfire", "substitute", "thunderbolt", "toxic"]
|
||||
},
|
||||
"celebi": {
|
||||
"level": 80,
|
||||
"moves": ["batonpass", "calmmind", "healbell", "hiddenpowergrass", "leechseed", "psychic", "recover"]
|
||||
},
|
||||
"sceptile": {
|
||||
"level": 82,
|
||||
"moves": ["focuspunch", "hiddenpowerice", "leafblade", "leechseed", "substitute", "thunderpunch"]
|
||||
},
|
||||
"blaziken": {
|
||||
"level": 82,
|
||||
"moves": ["endure", "fireblast", "hiddenpowerice", "reversal", "rockslide", "skyuppercut", "swordsdance", "thunderpunch"]
|
||||
},
|
||||
"swampert": {
|
||||
"level": 80,
|
||||
"moves": ["earthquake", "hydropump", "icebeam", "protect", "rest", "rockslide", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"mightyena": {
|
||||
"level": 90,
|
||||
"moves": ["crunch", "doubleedge", "healbell", "hiddenpowerfighting", "protect", "shadowball", "toxic"]
|
||||
},
|
||||
"linoone": {
|
||||
"level": 84,
|
||||
"moves": ["bellydrum", "extremespeed", "flail", "hiddenpowerground", "shadowball", "substitute"]
|
||||
},
|
||||
"beautifly": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowerbug", "hiddenpowerflying", "morningsun", "stunspore", "substitute", "toxic"]
|
||||
},
|
||||
"dustox": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowerground", "lightscreen", "moonlight", "sludgebomb", "toxic", "whirlwind"]
|
||||
},
|
||||
"ludicolo": {
|
||||
"level": 82,
|
||||
"moves": ["hiddenpowergrass", "icebeam", "leechseed", "raindance", "substitute", "surf"]
|
||||
},
|
||||
"shiftry": {
|
||||
"level": 84,
|
||||
"moves": ["brickbreak", "explosion", "shadowball", "swordsdance"]
|
||||
},
|
||||
"swellow": {
|
||||
"level": 82,
|
||||
"moves": ["aerialace", "doubleedge", "hiddenpowerfighting", "hiddenpowerground", "quickattack", "return"]
|
||||
},
|
||||
"pelipper": {
|
||||
"level": 88,
|
||||
"moves": ["icebeam", "protect", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"gardevoir": {
|
||||
"level": 82,
|
||||
"moves": ["calmmind", "firepunch", "hypnosis", "psychic", "substitute", "thunderbolt", "willowisp"]
|
||||
},
|
||||
"masquerain": {
|
||||
"level": 90,
|
||||
"moves": ["hydropump", "icebeam", "stunspore", "substitute", "toxic"]
|
||||
},
|
||||
"breloom": {
|
||||
"level": 80,
|
||||
"moves": ["focuspunch", "hiddenpowerghost", "hiddenpowerrock", "leechseed", "machpunch", "skyuppercut", "spore", "substitute", "swordsdance"]
|
||||
},
|
||||
"vigoroth": {
|
||||
"level": 88,
|
||||
"moves": ["brickbreak", "bulkup", "earthquake", "return", "shadowball", "slackoff"]
|
||||
},
|
||||
"slaking": {
|
||||
"level": 82,
|
||||
"moves": ["doubleedge", "earthquake", "focuspunch", "return", "shadowball"]
|
||||
},
|
||||
"ninjask": {
|
||||
"level": 84,
|
||||
"moves": ["aerialace", "batonpass", "hiddenpowerrock", "protect", "silverwind", "substitute", "swordsdance"]
|
||||
},
|
||||
"shedinja": {
|
||||
"level": 90,
|
||||
"moves": ["agility", "batonpass", "hiddenpowerground", "shadowball", "silverwind", "toxic"]
|
||||
},
|
||||
"exploud": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "flamethrower", "icebeam", "overheat", "return", "shadowball", "substitute"]
|
||||
},
|
||||
"hariyama": {
|
||||
"level": 82,
|
||||
"moves": ["bulkup", "crosschop", "fakeout", "hiddenpowerghost", "rest", "rockslide", "sleeptalk"]
|
||||
},
|
||||
"nosepass": {
|
||||
"level": 90,
|
||||
"moves": ["earthquake", "explosion", "rockslide", "thunderwave", "toxic"]
|
||||
},
|
||||
"delcatty": {
|
||||
"level": 90,
|
||||
"moves": ["batonpass", "doubleedge", "healbell", "thunderwave", "wish"]
|
||||
},
|
||||
"sableye": {
|
||||
"level": 88,
|
||||
"moves": ["knockoff", "recover", "seismictoss", "shadowball", "toxic"]
|
||||
},
|
||||
"mawile": {
|
||||
"level": 90,
|
||||
"moves": ["batonpass", "brickbreak", "focuspunch", "hiddenpowersteel", "rockslide", "substitute", "swordsdance", "toxic"]
|
||||
},
|
||||
"aggron": {
|
||||
"level": 84,
|
||||
"moves": ["doubleedge", "earthquake", "focuspunch", "irontail", "rockslide", "substitute", "thunderwave", "toxic"]
|
||||
},
|
||||
"medicham": {
|
||||
"level": 82,
|
||||
"moves": ["brickbreak", "bulkup", "recover", "rockslide", "shadowball", "substitute"]
|
||||
},
|
||||
"manectric": {
|
||||
"level": 84,
|
||||
"moves": ["crunch", "hiddenpowergrass", "hiddenpowerice", "substitute", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"plusle": {
|
||||
"level": 88,
|
||||
"moves": ["agility", "batonpass", "encore", "hiddenpowergrass", "substitute", "thunderbolt", "toxic"]
|
||||
},
|
||||
"minun": {
|
||||
"level": 90,
|
||||
"moves": ["batonpass", "encore", "hiddenpowerice", "lightscreen", "substitute", "thunderbolt", "wish"]
|
||||
},
|
||||
"volbeat": {
|
||||
"level": 90,
|
||||
"moves": ["batonpass", "icepunch", "tailglow", "thunderbolt"]
|
||||
},
|
||||
"illumise": {
|
||||
"level": 90,
|
||||
"moves": ["batonpass", "encore", "icepunch", "substitute", "thunderwave", "wish"]
|
||||
},
|
||||
"roselia": {
|
||||
"level": 88,
|
||||
"moves": ["aromatherapy", "gigadrain", "hiddenpowerfire", "spikes", "stunspore", "synthesis"]
|
||||
},
|
||||
"swalot": {
|
||||
"level": 90,
|
||||
"moves": ["encore", "explosion", "hiddenpowerground", "icebeam", "sludgebomb", "toxic", "yawn"]
|
||||
},
|
||||
"sharpedo": {
|
||||
"level": 84,
|
||||
"moves": ["crunch", "earthquake", "endure", "hiddenpowerflying", "hydropump", "icebeam", "return"]
|
||||
},
|
||||
"wailord": {
|
||||
"level": 88,
|
||||
"moves": ["hiddenpowergrass", "icebeam", "rest", "selfdestruct", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"camerupt": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "explosion", "fireblast", "rest", "rockslide", "sleeptalk", "toxic"]
|
||||
},
|
||||
"torkoal": {
|
||||
"level": 88,
|
||||
"moves": ["explosion", "fireblast", "flamethrower", "hiddenpowergrass", "rest", "toxic", "yawn"]
|
||||
},
|
||||
"grumpig": {
|
||||
"level": 84,
|
||||
"moves": ["calmmind", "firepunch", "icywind", "psychic", "substitute", "taunt"]
|
||||
},
|
||||
"spinda": {
|
||||
"level": 90,
|
||||
"moves": ["bodyslam", "encore", "focuspunch", "shadowball", "substitute", "teeterdance", "toxic"]
|
||||
},
|
||||
"flygon": {
|
||||
"level": 80,
|
||||
"moves": ["dragonclaw", "earthquake", "fireblast", "hiddenpowerbug", "rockslide", "substitute", "toxic"]
|
||||
},
|
||||
"cacturne": {
|
||||
"level": 88,
|
||||
"moves": ["focuspunch", "hiddenpowerdark", "leechseed", "needlearm", "spikes", "substitute", "thunderpunch"]
|
||||
},
|
||||
"altaria": {
|
||||
"level": 84,
|
||||
"moves": ["dragonclaw", "dragondance", "earthquake", "fireblast", "flamethrower", "haze", "hiddenpowerflying", "rest", "toxic"]
|
||||
},
|
||||
"zangoose": {
|
||||
"level": 82,
|
||||
"moves": ["brickbreak", "quickattack", "return", "shadowball", "swordsdance"]
|
||||
},
|
||||
"seviper": {
|
||||
"level": 90,
|
||||
"moves": ["crunch", "doubleedge", "earthquake", "flamethrower", "hiddenpowergrass", "sludgebomb"]
|
||||
},
|
||||
"lunatone": {
|
||||
"level": 84,
|
||||
"moves": ["batonpass", "calmmind", "explosion", "hypnosis", "icebeam", "psychic"]
|
||||
},
|
||||
"solrock": {
|
||||
"level": 84,
|
||||
"moves": ["earthquake", "explosion", "overheat", "reflect", "rockslide", "shadowball"]
|
||||
},
|
||||
"whiscash": {
|
||||
"level": 88,
|
||||
"moves": ["earthquake", "hiddenpowerbug", "icebeam", "rest", "rockslide", "sleeptalk", "spark", "surf", "toxic"]
|
||||
},
|
||||
"crawdaunt": {
|
||||
"level": 88,
|
||||
"moves": ["brickbreak", "crunch", "doubleedge", "hiddenpowerghost", "icebeam", "surf"]
|
||||
},
|
||||
"claydol": {
|
||||
"level": 80,
|
||||
"moves": ["earthquake", "explosion", "icebeam", "psychic", "rapidspin", "toxic"]
|
||||
},
|
||||
"cradily": {
|
||||
"level": 84,
|
||||
"moves": ["barrier", "earthquake", "hiddenpowergrass", "mirrorcoat", "recover", "rockslide", "toxic"]
|
||||
},
|
||||
"armaldo": {
|
||||
"level": 82,
|
||||
"moves": ["doubleedge", "earthquake", "hiddenpowerbug", "rockslide", "swordsdance"]
|
||||
},
|
||||
"milotic": {
|
||||
"level": 80,
|
||||
"moves": ["icebeam", "mirrorcoat", "recover", "surf", "toxic"]
|
||||
},
|
||||
"castform": {
|
||||
"level": 90,
|
||||
"moves": ["flamethrower", "icebeam", "substitute", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"kecleon": {
|
||||
"level": 88,
|
||||
"moves": ["brickbreak", "return", "shadowball", "thunderwave", "trick"]
|
||||
},
|
||||
"banette": {
|
||||
"level": 84,
|
||||
"moves": ["destinybond", "endure", "hiddenpowerfighting", "knockoff", "shadowball", "willowisp"]
|
||||
},
|
||||
"dusclops": {
|
||||
"level": 82,
|
||||
"moves": ["focuspunch", "icebeam", "painsplit", "rest", "shadowball", "sleeptalk", "substitute", "willowisp"]
|
||||
},
|
||||
"tropius": {
|
||||
"level": 90,
|
||||
"moves": ["hiddenpowerfire", "solarbeam", "sunnyday", "synthesis"]
|
||||
},
|
||||
"chimecho": {
|
||||
"level": 88,
|
||||
"moves": ["calmmind", "healbell", "hiddenpowerfire", "lightscreen", "psychic", "reflect", "toxic", "yawn"]
|
||||
},
|
||||
"absol": {
|
||||
"level": 84,
|
||||
"moves": ["batonpass", "hiddenpowerfighting", "quickattack", "shadowball", "swordsdance"]
|
||||
},
|
||||
"glalie": {
|
||||
"level": 88,
|
||||
"moves": ["earthquake", "explosion", "icebeam", "spikes", "toxic"]
|
||||
},
|
||||
"walrein": {
|
||||
"level": 84,
|
||||
"moves": ["encore", "hiddenpowergrass", "icebeam", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"huntail": {
|
||||
"level": 88,
|
||||
"moves": ["doubleedge", "hiddenpowergrass", "hydropump", "icebeam", "raindance", "surf"]
|
||||
},
|
||||
"gorebyss": {
|
||||
"level": 84,
|
||||
"moves": ["hiddenpowerelectric", "hiddenpowergrass", "hydropump", "icebeam", "raindance", "surf"]
|
||||
},
|
||||
"relicanth": {
|
||||
"level": 88,
|
||||
"moves": ["doubleedge", "earthquake", "hiddenpowerflying", "rest", "rockslide", "sleeptalk", "toxic"]
|
||||
},
|
||||
"luvdisc": {
|
||||
"level": 90,
|
||||
"moves": ["icebeam", "protect", "substitute", "surf", "sweetkiss", "toxic"]
|
||||
},
|
||||
"salamence": {
|
||||
"level": 80,
|
||||
"moves": ["brickbreak", "dragondance", "earthquake", "fireblast", "hiddenpowerflying", "rockslide"]
|
||||
},
|
||||
"metagross": {
|
||||
"level": 80,
|
||||
"moves": ["agility", "earthquake", "explosion", "meteormash", "psychic", "rockslide"]
|
||||
},
|
||||
"regirock": {
|
||||
"level": 82,
|
||||
"moves": ["curse", "earthquake", "explosion", "rest", "rockslide", "superpower", "thunderwave"]
|
||||
},
|
||||
"regice": {
|
||||
"level": 82,
|
||||
"moves": ["explosion", "icebeam", "rest", "sleeptalk", "thunderbolt", "thunderwave", "toxic"]
|
||||
},
|
||||
"registeel": {
|
||||
"level": 82,
|
||||
"moves": ["rest", "seismictoss", "sleeptalk", "toxic"]
|
||||
},
|
||||
"latias": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "dragonclaw", "hiddenpowerfire", "recover", "refresh", "toxic"]
|
||||
},
|
||||
"latios": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "dragonclaw", "hiddenpowerfire", "psychic", "recover", "thunderbolt"]
|
||||
},
|
||||
"kyogre": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "icebeam", "rest", "sleeptalk", "surf", "thunder"]
|
||||
},
|
||||
"groudon": {
|
||||
"level": 76,
|
||||
"moves": ["earthquake", "hiddenpowerbug", "overheat", "rockslide", "substitute", "swordsdance", "thunderwave"]
|
||||
},
|
||||
"rayquaza": {
|
||||
"level": 76,
|
||||
"moves": ["dragondance", "earthquake", "extremespeed", "hiddenpowerflying", "overheat", "rockslide"]
|
||||
},
|
||||
"jirachi": {
|
||||
"level": 80,
|
||||
"moves": ["bodyslam", "calmmind", "firepunch", "icepunch", "protect", "psychic", "substitute", "thunderbolt", "wish"]
|
||||
},
|
||||
"deoxys": {
|
||||
"level": 76,
|
||||
"moves": ["extremespeed", "firepunch", "icebeam", "psychoboost", "shadowball", "superpower"]
|
||||
},
|
||||
"deoxysattack": {
|
||||
"level": 76,
|
||||
"moves": ["extremespeed", "firepunch", "psychoboost", "shadowball", "superpower"]
|
||||
},
|
||||
"deoxysdefense": {
|
||||
"level": 76,
|
||||
"moves": ["nightshade", "recover", "spikes", "taunt", "toxic"]
|
||||
},
|
||||
"deoxysspeed": {
|
||||
"level": 76,
|
||||
"moves": ["calmmind", "icebeam", "psychic", "recover", "spikes", "taunt", "toxic"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,577 @@
|
||||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var random_teams_exports = {};
|
||||
__export(random_teams_exports, {
|
||||
RandomGen3Teams: () => RandomGen3Teams,
|
||||
default: () => random_teams_default
|
||||
});
|
||||
module.exports = __toCommonJS(random_teams_exports);
|
||||
var import_random_teams = __toESM(require("../gen4/random-teams"));
|
||||
var import_lib = require("../../../lib");
|
||||
class RandomGen3Teams extends import_random_teams.default {
|
||||
constructor(format, prng) {
|
||||
super(format, prng);
|
||||
this.randomData = require("./random-data.json");
|
||||
this.battleHasDitto = false;
|
||||
this.battleHasWobbuffet = false;
|
||||
this.moveEnforcementCheckers = {
|
||||
Bug: (movePool, moves, abilities, types, counter, species) => movePool.includes("megahorn") || !species.types[1] && movePool.includes("hiddenpowerbug"),
|
||||
Electric: (movePool, moves, abilities, types, counter) => !counter.get("Electric"),
|
||||
Fighting: (movePool, moves, abilities, types, counter) => !counter.get("Fighting"),
|
||||
Fire: (movePool, moves, abilities, types, counter) => !counter.get("Fire"),
|
||||
Ground: (movePool, moves, abilities, types, counter) => !counter.get("Ground"),
|
||||
Normal: (movePool, moves, abilities, types, counter, species) => {
|
||||
if (species.id === "blissey" && movePool.includes("softboiled"))
|
||||
return true;
|
||||
return !counter.get("Normal") && counter.setupType === "Physical";
|
||||
},
|
||||
Psychic: (movePool, moves, abilities, types, counter, species) => types.has("Psychic") && (movePool.includes("psychic") || movePool.includes("psychoboost")) && species.baseStats.spa >= 100,
|
||||
Rock: (movePool, moves, abilities, types, counter, species) => !counter.get("Rock") && species.baseStats.atk >= 100,
|
||||
Water: (movePool, moves, abilities, types, counter, species) => !counter.get("Water") && counter.setupType !== "Physical" && species.baseStats.spa >= 60,
|
||||
// If the Pokémon has this move, the other move will be forced
|
||||
protect: (movePool) => movePool.includes("wish"),
|
||||
sunnyday: (movePool) => movePool.includes("solarbeam"),
|
||||
sleeptalk: (movePool) => movePool.includes("rest")
|
||||
};
|
||||
}
|
||||
shouldCullMove(move, types, moves, abilities, counter, movePool, teamDetails, species) {
|
||||
const restTalk = moves.has("rest") && moves.has("sleeptalk");
|
||||
switch (move.id) {
|
||||
case "bulkup":
|
||||
case "curse":
|
||||
case "dragondance":
|
||||
case "swordsdance":
|
||||
return {
|
||||
cull: counter.setupType !== "Physical" || counter.get("physicalsetup") > 1 || counter.get("Physical") + counter.get("physicalpool") < 2 && !moves.has("batonpass") && !restTalk,
|
||||
isSetup: true
|
||||
};
|
||||
case "calmmind":
|
||||
return {
|
||||
cull: counter.setupType !== "Special" || counter.get("Special") + counter.get("specialpool") < 2 && !moves.has("batonpass") && !moves.has("refresh") && !restTalk,
|
||||
isSetup: true
|
||||
};
|
||||
case "agility":
|
||||
return {
|
||||
cull: counter.damagingMoves.size < 2 && !moves.has("batonpass") || moves.has("substitute") || restTalk,
|
||||
isSetup: !counter.setupType
|
||||
};
|
||||
case "amnesia":
|
||||
case "sleeptalk":
|
||||
if (moves.has("roar") || moves.has("whirlwind"))
|
||||
return { cull: true };
|
||||
if (!moves.has("rest"))
|
||||
return { cull: true };
|
||||
if (movePool.length > 1) {
|
||||
const rest = movePool.indexOf("rest");
|
||||
if (rest >= 0)
|
||||
this.fastPop(movePool, rest);
|
||||
}
|
||||
break;
|
||||
case "barrier":
|
||||
return { cull: !moves.has("calmmind") && !moves.has("batonpass") && !moves.has("mirrorcoat") };
|
||||
case "batonpass":
|
||||
return { cull: !counter.setupType && !counter.get("speedsetup") && ["meanlook", "spiderweb", "substitute", "wish"].every((m) => !moves.has(m)) };
|
||||
case "endeavor":
|
||||
case "flail":
|
||||
case "reversal":
|
||||
return { cull: restTalk || !moves.has("endure") && !moves.has("substitute") };
|
||||
case "endure":
|
||||
return { cull: movePool.includes("destinybond") };
|
||||
case "extremespeed":
|
||||
case "raindance":
|
||||
case "sunnyday":
|
||||
return { cull: counter.damagingMoves.size < 2 || moves.has("rest") };
|
||||
case "focuspunch":
|
||||
return { cull: counter.damagingMoves.size < 2 || moves.has("rest") || counter.setupType && !moves.has("spore") || !moves.has("substitute") && (counter.get("Physical") < 4 || moves.has("fakeout")) || species.id === "breloom" && (moves.has("machpunch") || moves.has("skyuppercut")) };
|
||||
case "moonlight":
|
||||
return { cull: moves.has("wish") || moves.has("protect") };
|
||||
case "perishsong":
|
||||
return { cull: !moves.has("meanlook") && !moves.has("spiderweb") };
|
||||
case "protect":
|
||||
return { cull: !abilities.has("Speed Boost") && ["perishsong", "toxic", "wish"].every((m) => !moves.has(m)) };
|
||||
case "refresh":
|
||||
return { cull: !counter.setupType };
|
||||
case "rest":
|
||||
return { cull: movePool.includes("sleeptalk") || !moves.has("sleeptalk") && (!!counter.get("recovery") || movePool.includes("curse")) };
|
||||
case "solarbeam":
|
||||
if (movePool.length > 1) {
|
||||
const sunnyday = movePool.indexOf("sunnyday");
|
||||
if (sunnyday >= 0)
|
||||
this.fastPop(movePool, sunnyday);
|
||||
}
|
||||
return { cull: !moves.has("sunnyday") };
|
||||
case "aromatherapy":
|
||||
case "healbell":
|
||||
return { cull: moves.has("rest") || !!teamDetails.statusCure };
|
||||
case "confuseray":
|
||||
return { cull: !!counter.setupType || restTalk };
|
||||
case "counter":
|
||||
case "mirrorcoat":
|
||||
return { cull: !!counter.setupType || ["rest", "substitute", "toxic"].some((m) => moves.has(m)) };
|
||||
case "destinybond":
|
||||
return { cull: !!counter.setupType || moves.has("explosion") || moves.has("selfdestruct") };
|
||||
case "doubleedge":
|
||||
case "facade":
|
||||
case "fakeout":
|
||||
case "waterspout":
|
||||
return { cull: !types.has(move.type) && counter.get("Status") >= 1 || move.id === "doubleedge" && moves.has("return") };
|
||||
case "encore":
|
||||
case "painsplit":
|
||||
case "recover":
|
||||
case "yawn":
|
||||
return { cull: restTalk };
|
||||
case "explosion":
|
||||
case "machpunch":
|
||||
case "selfdestruct":
|
||||
const snorlaxCase = species.id === "snorlax" && !moves.has("return") && !moves.has("bodyslam");
|
||||
return { cull: snorlaxCase || moves.has("rest") || moves.has("substitute") || !!counter.get("recovery") };
|
||||
case "haze":
|
||||
return { cull: !!counter.setupType || moves.has("raindance") || restTalk };
|
||||
case "icywind":
|
||||
case "pursuit":
|
||||
case "superpower":
|
||||
case "transform":
|
||||
return { cull: !!counter.setupType || moves.has("rest") };
|
||||
case "leechseed":
|
||||
return { cull: !!counter.setupType || moves.has("explosion") };
|
||||
case "stunspore":
|
||||
return { cull: moves.has("sunnyday") || moves.has("toxic") };
|
||||
case "lightscreen":
|
||||
return { cull: !!counter.setupType || !!counter.get("speedsetup") };
|
||||
case "meanlook":
|
||||
case "spiderweb":
|
||||
return { cull: !!counter.get("speedsetup") || !moves.has("batonpass") && !moves.has("perishsong") };
|
||||
case "morningsun":
|
||||
return { cull: counter.get("speedsetup") >= 1 };
|
||||
case "quickattack":
|
||||
return { cull: !!counter.get("speedsetup") || moves.has("substitute") || !types.has("Normal") && !!counter.get("Status") };
|
||||
case "rapidspin":
|
||||
return { cull: !!counter.setupType || moves.has("rest") || !!teamDetails.rapidSpin };
|
||||
case "reflect":
|
||||
return { cull: !!counter.setupType || !!counter.get("speedsetup") };
|
||||
case "roar":
|
||||
case "whirlwind":
|
||||
return { cull: moves.has("sleeptalk") || moves.has("rest") };
|
||||
case "seismictoss":
|
||||
return { cull: !!counter.setupType || moves.has("thunderbolt") };
|
||||
case "spikes":
|
||||
return { cull: !!counter.setupType || moves.has("substitute") || restTalk || !!teamDetails.spikes };
|
||||
case "substitute":
|
||||
const restOrDD = moves.has("rest") || moves.has("dragondance") && !moves.has("bellydrum");
|
||||
return { cull: restOrDD || species.id !== "entei" && !moves.has("batonpass") && movePool.includes("calmmind") };
|
||||
case "thunderwave":
|
||||
return { cull: !!counter.setupType || moves.has("bodyslam") || moves.has("substitute") && movePool.includes("toxic") || restTalk };
|
||||
case "toxic":
|
||||
return { cull: !!counter.setupType || !!counter.get("speedsetup") || ["endure", "focuspunch", "raindance", "yawn", "hypnosis"].some((m) => moves.has(m)) };
|
||||
case "trick":
|
||||
return { cull: counter.get("Status") > 1 };
|
||||
case "willowisp":
|
||||
return { cull: !!counter.setupType || moves.has("hypnosis") || moves.has("toxic") };
|
||||
case "bodyslam":
|
||||
return { cull: moves.has("return") && !!counter.get("Status") };
|
||||
case "headbutt":
|
||||
return { cull: !moves.has("bodyslam") && !moves.has("thunderwave") };
|
||||
case "return":
|
||||
return { cull: moves.has("endure") || moves.has("substitute") && moves.has("flail") || moves.has("bodyslam") && !counter.get("Status") };
|
||||
case "fireblast":
|
||||
return { cull: moves.has("flamethrower") && !!counter.get("Status") };
|
||||
case "flamethrower":
|
||||
return { cull: moves.has("fireblast") && !counter.get("Status") };
|
||||
case "overheat":
|
||||
return { cull: moves.has("flamethrower") || moves.has("substitute") };
|
||||
case "hydropump":
|
||||
return { cull: moves.has("surf") && !!counter.get("Status") };
|
||||
case "surf":
|
||||
return { cull: moves.has("hydropump") && !counter.get("Status") };
|
||||
case "gigadrain":
|
||||
return { cull: moves.has("morningsun") || moves.has("toxic") };
|
||||
case "hiddenpower":
|
||||
const stabCondition = types.has(move.type) && counter.get(move.type) > 1 && (moves.has("substitute") && !counter.setupType && !moves.has("toxic") || species.id !== "meganium" && moves.has("toxic") && !moves.has("substitute") || restTalk);
|
||||
return { cull: stabCondition || move.type === "Grass" && moves.has("sunnyday") && moves.has("solarbeam") };
|
||||
case "brickbreak":
|
||||
case "crosschop":
|
||||
case "skyuppercut":
|
||||
return { cull: moves.has("substitute") && (moves.has("focuspunch") || movePool.includes("focuspunch")) };
|
||||
case "earthquake":
|
||||
return { cull: moves.has("bonemerang") };
|
||||
}
|
||||
return { cull: false };
|
||||
}
|
||||
getItem(ability, types, moves, counter, species) {
|
||||
if (species.name === "Ditto")
|
||||
return this.sample(["Metal Powder", "Quick Claw"]);
|
||||
if (species.name === "Farfetch\u2019d")
|
||||
return "Stick";
|
||||
if (species.name === "Marowak")
|
||||
return "Thick Club";
|
||||
if (species.name === "Pikachu")
|
||||
return "Light Ball";
|
||||
if (species.name === "Shedinja")
|
||||
return "Lum Berry";
|
||||
if (species.name === "Unown")
|
||||
return "Twisted Spoon";
|
||||
if (moves.has("trick"))
|
||||
return "Choice Band";
|
||||
if (moves.has("rest") && !moves.has("sleeptalk") && !["Early Bird", "Natural Cure", "Shed Skin"].includes(ability)) {
|
||||
return "Chesto Berry";
|
||||
}
|
||||
if (moves.has("dragondance") && ability !== "Natural Cure")
|
||||
return "Lum Berry";
|
||||
if (moves.has("bellydrum") && counter.get("Physical") - counter.get("priority") > 1 || (moves.has("swordsdance") && counter.get("Status") < 2 || moves.has("bulkup") && moves.has("substitute")) && !counter.get("priority") && species.baseStats.spe >= 60 && species.baseStats.spe <= 95) {
|
||||
return "Salac Berry";
|
||||
}
|
||||
if (moves.has("endure") || moves.has("substitute") && ["bellydrum", "endeavor", "flail", "reversal"].some((m) => moves.has(m))) {
|
||||
return species.baseStats.spe <= 100 && ability !== "Speed Boost" && !counter.get("speedsetup") && !moves.has("focuspunch") ? "Salac Berry" : "Liechi Berry";
|
||||
}
|
||||
if (moves.has("substitute") && counter.get("Physical") >= 3 && species.baseStats.spe >= 120)
|
||||
return "Liechi Berry";
|
||||
if ((moves.has("substitute") || moves.has("raindance")) && counter.get("Special") >= 3)
|
||||
return "Petaya Berry";
|
||||
if (counter.get("Physical") >= 4 && !moves.has("fakeout"))
|
||||
return "Choice Band";
|
||||
if (counter.get("Physical") >= 3 && !moves.has("rapidspin") && (["fireblast", "icebeam", "overheat"].some((m) => moves.has(m)) || Array.from(moves).some((m) => {
|
||||
const moveData = this.dex.moves.get(m);
|
||||
return moveData.category === "Special" && types.has(moveData.type);
|
||||
}))) {
|
||||
return "Choice Band";
|
||||
}
|
||||
if (moves.has("psychoboost"))
|
||||
return "White Herb";
|
||||
return "Leftovers";
|
||||
}
|
||||
shouldCullAbility(ability, types, moves, abilities, counter, movePool, teamDetails, species) {
|
||||
switch (ability) {
|
||||
case "Chlorophyll":
|
||||
return !moves.has("sunnyday") && !teamDetails["sun"];
|
||||
case "Compound Eyes":
|
||||
return !counter.get("inaccurate");
|
||||
case "Hustle":
|
||||
return counter.get("Physical") < 2;
|
||||
case "Lightning Rod":
|
||||
return species.types.includes("Ground");
|
||||
case "Overgrow":
|
||||
return !counter.get("Grass");
|
||||
case "Rock Head":
|
||||
return !counter.get("recoil");
|
||||
case "Sand Veil":
|
||||
return !teamDetails["sand"];
|
||||
case "Serene Grace":
|
||||
return species.id === "blissey";
|
||||
case "Sturdy":
|
||||
return true;
|
||||
case "Swift Swim":
|
||||
return !moves.has("raindance") && !teamDetails["rain"];
|
||||
case "Swarm":
|
||||
return !counter.get("Bug");
|
||||
case "Torrent":
|
||||
return !counter.get("Water");
|
||||
case "Water Absorb":
|
||||
return abilities.has("Swift Swim");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
randomSet(species, teamDetails = {}) {
|
||||
species = this.dex.species.get(species);
|
||||
let forme = species.name;
|
||||
const data = this.randomData[species.id];
|
||||
if (typeof species.battleOnly === "string")
|
||||
forme = species.battleOnly;
|
||||
const movePool = (data.moves || Object.keys(this.dex.species.getLearnset(species.id))).slice();
|
||||
const rejectedPool = [];
|
||||
const moves = /* @__PURE__ */ new Set();
|
||||
let ability = "";
|
||||
const evs = { hp: 85, atk: 85, def: 85, spa: 85, spd: 85, spe: 85 };
|
||||
const ivs = { hp: 31, atk: 31, def: 31, spa: 31, spd: 31, spe: 31 };
|
||||
let availableHP = 0;
|
||||
for (const setMoveid of movePool) {
|
||||
if (setMoveid.startsWith("hiddenpower"))
|
||||
availableHP++;
|
||||
}
|
||||
const types = new Set(species.types);
|
||||
const abilities = new Set(Object.values(species.abilities));
|
||||
let counter;
|
||||
let hasHiddenPower = false;
|
||||
do {
|
||||
while (moves.size < this.maxMoveCount && movePool.length) {
|
||||
const moveid = this.sampleNoReplace(movePool);
|
||||
if (moveid.startsWith("hiddenpower")) {
|
||||
availableHP--;
|
||||
if (hasHiddenPower)
|
||||
continue;
|
||||
hasHiddenPower = true;
|
||||
}
|
||||
moves.add(moveid);
|
||||
}
|
||||
while (moves.size < this.maxMoveCount && rejectedPool.length) {
|
||||
const moveid = this.sampleNoReplace(rejectedPool);
|
||||
if (moveid.startsWith("hiddenpower")) {
|
||||
if (hasHiddenPower)
|
||||
continue;
|
||||
hasHiddenPower = true;
|
||||
}
|
||||
moves.add(moveid);
|
||||
}
|
||||
counter = this.queryMoves(moves, species.types, abilities, movePool);
|
||||
for (const moveid of moves) {
|
||||
const move = this.dex.moves.get(moveid);
|
||||
let { cull, isSetup } = this.shouldCullMove(move, types, moves, abilities, counter, movePool, teamDetails, species);
|
||||
if (counter.setupType === "Physical" && move.category === "Special" && !types.has(move.type) && move.type !== "Fire" || counter.setupType === "Special" && move.category === "Physical" && moveid !== "superpower") {
|
||||
cull = true;
|
||||
}
|
||||
const moveIsRejectable = !move.weather && (move.category !== "Status" || !move.flags.heal) && (counter.setupType || !move.stallingMove) && // These moves cannot be rejected in favor of a forced move
|
||||
!["batonpass", "sleeptalk", "solarbeam", "substitute", "sunnyday"].includes(moveid) && (move.category === "Status" || !types.has(move.type) || move.basePower && move.basePower < 40 && !move.multihit);
|
||||
const requiresStab = !counter.get("stab") && !moves.has("seismictoss") && !moves.has("nightshade") && species.id !== "castform" && species.id !== "umbreon" && // If a Flying-type has Psychic, it doesn't need STAB
|
||||
!(moves.has("psychic") && types.has("Flying")) && !(types.has("Ghost") && species.baseStats.spa > species.baseStats.atk) && !// With Calm Mind, Lugia and pure Normal-types are fine without STAB
|
||||
(counter.setupType === "Special" && (species.id === "lugia" || types.has("Normal") && species.types.length < 2)) && !// With Swords Dance, Dark-types and pure Water-types are fine without STAB
|
||||
(counter.setupType === "Physical" && (types.has("Water") && species.types.length < 2 || types.has("Dark"))) && counter.get("physicalpool") + counter.get("specialpool") > 0;
|
||||
const runEnforcementChecker = (checkerName) => {
|
||||
if (!this.moveEnforcementCheckers[checkerName])
|
||||
return false;
|
||||
return this.moveEnforcementCheckers[checkerName](
|
||||
movePool,
|
||||
moves,
|
||||
abilities,
|
||||
types,
|
||||
counter,
|
||||
species,
|
||||
teamDetails
|
||||
);
|
||||
};
|
||||
if (!cull && !isSetup && moveIsRejectable) {
|
||||
if (requiresStab || counter.setupType && counter.get(counter.setupType) < 2 && !moves.has("refresh") || moves.has("substitute") && movePool.includes("morningsun") || ["meteormash", "spore", "recover"].some((m) => movePool.includes(m))) {
|
||||
cull = true;
|
||||
} else {
|
||||
for (const type of types) {
|
||||
if (runEnforcementChecker(type)) {
|
||||
cull = true;
|
||||
}
|
||||
}
|
||||
for (const m of moves) {
|
||||
if (runEnforcementChecker(m))
|
||||
cull = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (moveid === "rest" && cull) {
|
||||
const sleeptalk = movePool.indexOf("sleeptalk");
|
||||
if (sleeptalk >= 0) {
|
||||
if (movePool.length < 2) {
|
||||
cull = false;
|
||||
} else {
|
||||
this.fastPop(movePool, sleeptalk);
|
||||
}
|
||||
}
|
||||
}
|
||||
const moveIsHP = moveid.startsWith("hiddenpower");
|
||||
if (cull && (movePool.length - availableHP || availableHP && (moveIsHP || !hasHiddenPower))) {
|
||||
if (move.category !== "Status" && !move.damage && (!moveIsHP || !availableHP)) {
|
||||
rejectedPool.push(moveid);
|
||||
}
|
||||
if (moveIsHP)
|
||||
hasHiddenPower = false;
|
||||
moves.delete(moveid);
|
||||
break;
|
||||
}
|
||||
if (cull && rejectedPool.length) {
|
||||
if (moveIsHP)
|
||||
hasHiddenPower = false;
|
||||
moves.delete(moveid);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (moves.size < this.maxMoveCount && (movePool.length || rejectedPool.length));
|
||||
if (hasHiddenPower) {
|
||||
let hpType;
|
||||
for (const move of moves) {
|
||||
if (move.startsWith("hiddenpower"))
|
||||
hpType = move.substr(11);
|
||||
}
|
||||
if (!hpType)
|
||||
throw new Error(`hasHiddenPower is true, but no Hidden Power move was found.`);
|
||||
const HPivs = this.dex.types.get(hpType).HPivs;
|
||||
let iv;
|
||||
for (iv in HPivs) {
|
||||
ivs[iv] = HPivs[iv];
|
||||
}
|
||||
}
|
||||
const abilityData = Array.from(abilities).map((a) => this.dex.abilities.get(a)).filter((a) => a.gen === 3);
|
||||
import_lib.Utils.sortBy(abilityData, (abil) => -abil.rating);
|
||||
let ability0 = abilityData[0];
|
||||
let ability1 = abilityData[1];
|
||||
if (abilityData[1]) {
|
||||
if (ability0.rating <= ability1.rating && this.randomChance(1, 2)) {
|
||||
[ability0, ability1] = [ability1, ability0];
|
||||
} else if (ability0.rating - 0.6 <= ability1.rating && this.randomChance(2, 3)) {
|
||||
[ability0, ability1] = [ability1, ability0];
|
||||
}
|
||||
ability = ability0.name;
|
||||
while (this.shouldCullAbility(ability, types, moves, abilities, counter, movePool, teamDetails, species)) {
|
||||
if (ability === ability0.name && ability1.rating > 1) {
|
||||
ability = ability1.name;
|
||||
} else {
|
||||
ability = abilityData[0].name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ability = abilityData[0].name;
|
||||
}
|
||||
const item = this.getItem(ability, types, moves, counter, species);
|
||||
const level = this.adjustLevel || data.level || (species.nfe ? 90 : 80);
|
||||
let hp = Math.floor(Math.floor(2 * species.baseStats.hp + ivs.hp + Math.floor(evs.hp / 4) + 100) * level / 100 + 10);
|
||||
if (moves.has("substitute") && ["endeavor", "flail", "reversal"].some((m) => moves.has(m))) {
|
||||
if (hp % 4 === 0)
|
||||
evs.hp -= 4;
|
||||
} else if (moves.has("substitute") && (item === "Salac Berry" || item === "Petaya Berry" || item === "Liechi Berry")) {
|
||||
while (hp % 4 > 0) {
|
||||
evs.hp -= 4;
|
||||
hp = Math.floor(Math.floor(2 * species.baseStats.hp + ivs.hp + Math.floor(evs.hp / 4) + 100) * level / 100 + 10);
|
||||
}
|
||||
}
|
||||
if (!counter.get("Physical") && !moves.has("transform")) {
|
||||
evs.atk = 0;
|
||||
ivs.atk = hasHiddenPower ? ivs.atk - 28 : 0;
|
||||
}
|
||||
return {
|
||||
name: species.baseSpecies,
|
||||
species: forme,
|
||||
gender: species.gender,
|
||||
moves: Array.from(moves),
|
||||
ability,
|
||||
evs,
|
||||
ivs,
|
||||
item,
|
||||
level,
|
||||
shiny: this.randomChance(1, 1024)
|
||||
};
|
||||
}
|
||||
randomTeam() {
|
||||
this.enforceNoDirectCustomBanlistChanges();
|
||||
const seed = this.prng.seed;
|
||||
const ruleTable = this.dex.formats.getRuleTable(this.format);
|
||||
const pokemon = [];
|
||||
const isMonotype = !!this.forceMonotype || ruleTable.has("sametypeclause");
|
||||
const typePool = this.dex.types.names();
|
||||
const type = this.forceMonotype || this.sample(typePool);
|
||||
const baseFormes = {};
|
||||
const tierCount = {};
|
||||
const typeCount = {};
|
||||
const typeComboCount = {};
|
||||
const typeWeaknesses = {};
|
||||
const teamDetails = {};
|
||||
const pokemonPool = this.getPokemonPool(type, pokemon, isMonotype);
|
||||
while (pokemonPool.length && pokemon.length < this.maxTeamSize) {
|
||||
const species = this.dex.species.get(this.sampleNoReplace(pokemonPool));
|
||||
if (!species.exists || !this.randomData[species.id]?.moves)
|
||||
continue;
|
||||
if (baseFormes[species.baseSpecies])
|
||||
continue;
|
||||
if (species.name === "Wobbuffet" && this.battleHasWobbuffet)
|
||||
continue;
|
||||
if (this.dex.gen < 3 && species.name === "Ditto" && this.battleHasDitto)
|
||||
continue;
|
||||
const tier = species.tier;
|
||||
const types = species.types;
|
||||
const typeCombo = types.slice().sort().join();
|
||||
if (!isMonotype && !this.forceMonotype) {
|
||||
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;
|
||||
if (tierCount[tier] >= 2 * limitFactor)
|
||||
continue;
|
||||
let skip = false;
|
||||
for (const typeName of types) {
|
||||
if (typeCount[typeName] >= 2 * limitFactor) {
|
||||
skip = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (skip)
|
||||
continue;
|
||||
for (const typeName of this.dex.types.names()) {
|
||||
if (this.dex.getEffectiveness(typeName, species) > 0) {
|
||||
if (!typeWeaknesses[typeName])
|
||||
typeWeaknesses[typeName] = 0;
|
||||
if (typeWeaknesses[typeName] >= 3 * limitFactor) {
|
||||
skip = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (skip)
|
||||
continue;
|
||||
if (!this.forceMonotype && typeComboCount[typeCombo] >= 1 * limitFactor)
|
||||
continue;
|
||||
}
|
||||
const set = this.randomSet(species, teamDetails);
|
||||
pokemon.push(set);
|
||||
baseFormes[species.baseSpecies] = 1;
|
||||
if (tierCount[tier]) {
|
||||
tierCount[tier]++;
|
||||
} else {
|
||||
tierCount[tier] = 1;
|
||||
}
|
||||
for (const typeName of types) {
|
||||
if (typeName in typeCount) {
|
||||
typeCount[typeName]++;
|
||||
} else {
|
||||
typeCount[typeName] = 1;
|
||||
}
|
||||
}
|
||||
if (typeCombo in typeComboCount) {
|
||||
typeComboCount[typeCombo]++;
|
||||
} else {
|
||||
typeComboCount[typeCombo] = 1;
|
||||
}
|
||||
for (const typeName of this.dex.types.names()) {
|
||||
if (this.dex.getEffectiveness(typeName, species) > 0) {
|
||||
typeWeaknesses[typeName]++;
|
||||
}
|
||||
}
|
||||
if (set.ability === "Drizzle" || set.moves.includes("raindance"))
|
||||
teamDetails.rain = 1;
|
||||
if (set.ability === "Sand Stream")
|
||||
teamDetails.sand = 1;
|
||||
if (set.moves.includes("spikes"))
|
||||
teamDetails.spikes = 1;
|
||||
if (set.moves.includes("rapidspin"))
|
||||
teamDetails.rapidSpin = 1;
|
||||
if (set.moves.includes("aromatherapy") || set.moves.includes("healbell"))
|
||||
teamDetails.statusCure = 1;
|
||||
if (set.ability === "Shadow Tag")
|
||||
this.battleHasWobbuffet = true;
|
||||
if (species.id === "ditto")
|
||||
this.battleHasDitto = true;
|
||||
}
|
||||
if (pokemon.length < this.maxTeamSize && !isMonotype && !this.forceMonotype && pokemon.length < 12) {
|
||||
throw new Error(`Could not build a random team for ${this.format} (seed=${seed})`);
|
||||
}
|
||||
return pokemon;
|
||||
}
|
||||
}
|
||||
var random_teams_default = RandomGen3Teams;
|
||||
//# sourceMappingURL=random-teams.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/random-teams.ts"],
|
||||
"sourcesContent": ["import RandomGen4Teams from '../gen4/random-teams';\r\nimport {Utils} from '../../../lib';\r\nimport {PRNG, PRNGSeed} from '../../../sim/prng';\r\nimport type {MoveCounter, OldRandomBattleSpecies} from '../gen8/random-teams';\r\n\r\nexport class RandomGen3Teams extends RandomGen4Teams {\r\n\tbattleHasDitto: boolean;\r\n\tbattleHasWobbuffet: boolean;\r\n\r\n\trandomData: {[species: string]: OldRandomBattleSpecies} = require('./random-data.json');\r\n\r\n\tconstructor(format: string | Format, prng: PRNG | PRNGSeed | null) {\r\n\t\tsuper(format, prng);\r\n\t\tthis.battleHasDitto = false;\r\n\t\tthis.battleHasWobbuffet = false;\r\n\t\tthis.moveEnforcementCheckers = {\r\n\t\t\tBug: (movePool, moves, abilities, types, counter, species) => (\r\n\t\t\t\tmovePool.includes('megahorn') || (!species.types[1] && movePool.includes('hiddenpowerbug'))\r\n\t\t\t),\r\n\t\t\tElectric: (movePool, moves, abilities, types, counter) => !counter.get('Electric'),\r\n\t\t\tFighting: (movePool, moves, abilities, types, counter) => !counter.get('Fighting'),\r\n\t\t\tFire: (movePool, moves, abilities, types, counter) => !counter.get('Fire'),\r\n\t\t\tGround: (movePool, moves, abilities, types, counter) => !counter.get('Ground'),\r\n\t\t\tNormal: (movePool, moves, abilities, types, counter, species) => {\r\n\t\t\t\tif (species.id === 'blissey' && movePool.includes('softboiled')) return true;\r\n\t\t\t\treturn !counter.get('Normal') && counter.setupType === 'Physical';\r\n\t\t\t},\r\n\t\t\tPsychic: (movePool, moves, abilities, types, counter, species) => (\r\n\t\t\t\ttypes.has('Psychic') &&\r\n\t\t\t\t(movePool.includes('psychic') || movePool.includes('psychoboost')) &&\r\n\t\t\t\tspecies.baseStats.spa >= 100\r\n\t\t\t),\r\n\t\t\tRock: (movePool, moves, abilities, types, counter, species) => !counter.get('Rock') && species.baseStats.atk >= 100,\r\n\t\t\tWater: (movePool, moves, abilities, types, counter, species) => (\r\n\t\t\t\t!counter.get('Water') && counter.setupType !== 'Physical' && species.baseStats.spa >= 60\r\n\t\t\t),\r\n\t\t\t// If the Pok\u00E9mon has this move, the other move will be forced\r\n\t\t\tprotect: movePool => movePool.includes('wish'),\r\n\t\t\tsunnyday: movePool => movePool.includes('solarbeam'),\r\n\t\t\tsleeptalk: movePool => movePool.includes('rest'),\r\n\t\t};\r\n\t}\r\n\r\n\tshouldCullMove(\r\n\t\tmove: Move,\r\n\t\ttypes: Set<string>,\r\n\t\tmoves: Set<string>,\r\n\t\tabilities: Set<string>,\r\n\t\tcounter: MoveCounter,\r\n\t\tmovePool: string[],\r\n\t\tteamDetails: RandomTeamsTypes.TeamDetails,\r\n\t\tspecies: Species,\r\n\t): {cull: boolean, isSetup?: boolean} {\r\n\t\tconst restTalk = moves.has('rest') && moves.has('sleeptalk');\r\n\r\n\t\tswitch (move.id) {\r\n\t\t// Set up once and only if we have the moves for it\r\n\t\tcase 'bulkup': case 'curse': case 'dragondance': case 'swordsdance':\r\n\t\t\treturn {\r\n\t\t\t\tcull: (\r\n\t\t\t\t\t(counter.setupType !== 'Physical' || counter.get('physicalsetup') > 1) ||\r\n\t\t\t\t\t(counter.get('Physical') + counter.get('physicalpool') < 2 && !moves.has('batonpass') && !restTalk)\r\n\t\t\t\t),\r\n\t\t\t\tisSetup: true,\r\n\t\t\t};\r\n\t\tcase 'calmmind':\r\n\t\t\treturn {\r\n\t\t\t\tcull: (\r\n\t\t\t\t\tcounter.setupType !== 'Special' ||\r\n\t\t\t\t\t(counter.get('Special') + counter.get('specialpool') < 2 && !moves.has('batonpass') &&\r\n\t\t\t\t\t!moves.has('refresh') && !restTalk)\r\n\t\t\t\t),\r\n\t\t\t\tisSetup: true,\r\n\t\t\t};\r\n\t\tcase 'agility':\r\n\t\t\treturn {\r\n\t\t\t\tcull: (counter.damagingMoves.size < 2 && !moves.has('batonpass')) || moves.has('substitute') || restTalk,\r\n\t\t\t\tisSetup: !counter.setupType,\r\n\t\t\t};\r\n\r\n\t\t// Not very useful without their supporting moves\r\n\t\tcase 'amnesia': case 'sleeptalk':\r\n\t\t\tif (moves.has('roar') || moves.has('whirlwind')) return {cull: true};\r\n\t\t\tif (!moves.has('rest')) return {cull: true};\r\n\t\t\tif (movePool.length > 1) {\r\n\t\t\t\tconst rest = movePool.indexOf('rest');\r\n\t\t\t\tif (rest >= 0) this.fastPop(movePool, rest);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 'barrier':\r\n\t\t\treturn {cull: !moves.has('calmmind') && !moves.has('batonpass') && !moves.has('mirrorcoat')};\r\n\t\tcase 'batonpass':\r\n\t\t\treturn {cull: (\r\n\t\t\t\t(!counter.setupType && !counter.get('speedsetup')) &&\r\n\t\t\t\t['meanlook', 'spiderweb', 'substitute', 'wish'].every(m => !moves.has(m))\r\n\t\t\t)};\r\n\t\tcase 'endeavor': case 'flail': case 'reversal':\r\n\t\t\treturn {cull: restTalk || (!moves.has('endure') && !moves.has('substitute'))};\r\n\t\tcase 'endure':\r\n\t\t\treturn {cull: movePool.includes('destinybond')};\r\n\t\tcase 'extremespeed': case 'raindance': case 'sunnyday':\r\n\t\t\treturn {cull: counter.damagingMoves.size < 2 || moves.has('rest')};\r\n\t\tcase 'focuspunch':\r\n\t\t\treturn {cull: (\r\n\t\t\t\t(counter.damagingMoves.size < 2 || moves.has('rest') || counter.setupType && !moves.has('spore')) ||\r\n\t\t\t\t(!moves.has('substitute') && (counter.get('Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;AAC5B,iBAAoB;AAIb,MAAM,wBAAwB,oBAAAA,QAAgB;AAAA,EAMpD,YAAY,QAAyB,MAA8B;AAClE,UAAM,QAAQ,IAAI;AAHnB,sBAA0D,QAAQ,oBAAoB;AAIrF,SAAK,iBAAiB;AACtB,SAAK,qBAAqB;AAC1B,SAAK,0BAA0B;AAAA,MAC9B,KAAK,CAAC,UAAU,OAAO,WAAW,OAAO,SAAS,YACjD,SAAS,SAAS,UAAU,KAAM,CAAC,QAAQ,MAAM,CAAC,KAAK,SAAS,SAAS,gBAAgB;AAAA,MAE1F,UAAU,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,UAAU;AAAA,MACjF,UAAU,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CAAC,QAAQ,IAAI,UAAU;AAAA,MACjF,MAAM,CAAC,UAAU,OAAO,WAAW,OAAO,YAAY,CA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AC,QAAQ,aAAa,MAAM,IAAI,MAAM,EAAC;AAAA,MACvD,KAAK;AACJ,eAAO,EAAC,MAAM,CAAC,CAAC,QAAQ,aAAa,MAAM,IAAI,WAAW,EAAC;AAAA,MAC5D,KAAK;AACJ,eAAO,EAAC,MAAM,MAAM,IAAI,UAAU,KAAK,MAAM,IAAI,OAAO,EAAC;AAAA,MAC1D,KAAK;AACJ,eAAO,EAAC,MAAM,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,QAAQ,IAAI,YAAY,EAAC;AAAA,MACjE,KAAK;AAAA,MAAY,KAAK;AACrB,eAAO,EAAC,MAAM,CAAC,CAAC,Line truncated
|
||||
"names": ["RandomGen4Teams"]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var rulesets_exports = {};
|
||||
__export(rulesets_exports, {
|
||||
Rulesets: () => Rulesets
|
||||
});
|
||||
module.exports = __toCommonJS(rulesets_exports);
|
||||
const Rulesets = {
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
desc: "The standard ruleset for all offical Smogon singles tiers (Ubers, OU, etc.)",
|
||||
ruleset: ["Obtainable", "Sleep Clause Mod", "Switch Priority Clause Mod", "Species Clause", "Nickname Clause", "OHKO Clause", "Evasion Items Clause", "Evasion Moves Clause", "Endless Battle Clause", "HP Percentage Mod", "Cancel Mod"]
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\tdesc: \"The standard ruleset for all offical Smogon singles tiers (Ubers, OU, etc.)\",\r\n\t\truleset: ['Obtainable', 'Sleep Clause Mod', 'Switch Priority Clause Mod', 'Species Clause', 'Nickname Clause', 'OHKO Clause', 'Evasion Items Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,oBAAoB,8BAA8B,kBAAkB,mBAAmB,eAAe,wBAAwB,wBAAwB,yBAAyB,qBAAqB,YAAY;AAAA,EACzO;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,448 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const Scripts = {
|
||||
inherit: "gen4",
|
||||
gen: 3,
|
||||
init() {
|
||||
const specialTypes = ["Fire", "Water", "Grass", "Ice", "Electric", "Dark", "Psychic", "Dragon"];
|
||||
let newCategory = "";
|
||||
for (const i in this.data.Moves) {
|
||||
if (!this.data.Moves[i])
|
||||
console.log(i);
|
||||
if (this.data.Moves[i].category === "Status")
|
||||
continue;
|
||||
newCategory = specialTypes.includes(this.data.Moves[i].type) ? "Special" : "Physical";
|
||||
if (newCategory !== this.data.Moves[i].category) {
|
||||
this.modData("Moves", i).category = newCategory;
|
||||
}
|
||||
}
|
||||
},
|
||||
pokemon: {
|
||||
inherit: true,
|
||||
getActionSpeed() {
|
||||
let speed = this.getStat("spe", false, false);
|
||||
if (this.battle.field.getPseudoWeather("trickroom")) {
|
||||
speed = -speed;
|
||||
}
|
||||
if (this.battle.quickClawRoll && this.hasItem("quickclaw")) {
|
||||
speed = 65535;
|
||||
}
|
||||
return speed;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
inherit: true,
|
||||
modifyDamage(baseDamage, pokemon, target, move, suppressMessages = false) {
|
||||
if (!move.type)
|
||||
move.type = "???";
|
||||
const type = move.type;
|
||||
if (pokemon.status === "brn" && baseDamage && move.category === "Physical" && !pokemon.hasAbility("guts")) {
|
||||
baseDamage = this.battle.modify(baseDamage, 0.5);
|
||||
}
|
||||
baseDamage = this.battle.runEvent("ModifyDamagePhase1", pokemon, target, move, baseDamage);
|
||||
if (move.spreadHit && move.target === "allAdjacentFoes") {
|
||||
const spreadModifier = move.spreadModifier || 0.5;
|
||||
this.battle.debug("Spread modifier: " + spreadModifier);
|
||||
baseDamage = this.battle.modify(baseDamage, spreadModifier);
|
||||
}
|
||||
baseDamage = this.battle.runEvent("WeatherModifyDamage", pokemon, target, move, baseDamage);
|
||||
if (move.category === "Physical" && !Math.floor(baseDamage)) {
|
||||
baseDamage = 1;
|
||||
}
|
||||
baseDamage += 2;
|
||||
const isCrit = target.getMoveHitData(move).crit;
|
||||
if (isCrit) {
|
||||
baseDamage = this.battle.modify(baseDamage, move.critModifier || 2);
|
||||
}
|
||||
baseDamage = Math.floor(this.battle.runEvent("ModifyDamagePhase2", pokemon, target, move, baseDamage));
|
||||
if (move.forceSTAB || type !== "???" && pokemon.hasType(type)) {
|
||||
baseDamage = this.battle.modify(baseDamage, move.stab || 1.5);
|
||||
}
|
||||
let typeMod = target.runEffectiveness(move);
|
||||
typeMod = this.battle.clampIntRange(typeMod, -6, 6);
|
||||
target.getMoveHitData(move).typeMod = typeMod;
|
||||
if (typeMod > 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-supereffective", target);
|
||||
for (let i = 0; i < typeMod; i++) {
|
||||
baseDamage *= 2;
|
||||
}
|
||||
}
|
||||
if (typeMod < 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-resisted", target);
|
||||
for (let i = 0; i > typeMod; i--) {
|
||||
baseDamage = Math.floor(baseDamage / 2);
|
||||
}
|
||||
}
|
||||
if (isCrit && !suppressMessages)
|
||||
this.battle.add("-crit", target);
|
||||
baseDamage = this.battle.runEvent("ModifyDamage", pokemon, target, move, baseDamage);
|
||||
baseDamage = this.battle.randomizer(baseDamage);
|
||||
if (!Math.floor(baseDamage)) {
|
||||
return 1;
|
||||
}
|
||||
return Math.floor(baseDamage);
|
||||
},
|
||||
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect, zMove) {
|
||||
if (!sourceEffect && this.battle.effect.id)
|
||||
sourceEffect = this.battle.effect;
|
||||
if (sourceEffect && sourceEffect.id === "instruct")
|
||||
sourceEffect = null;
|
||||
let move = this.dex.getActiveMove(moveOrMoveName);
|
||||
pokemon.lastMoveUsed = move;
|
||||
if (this.battle.activeMove) {
|
||||
move.priority = this.battle.activeMove.priority;
|
||||
}
|
||||
const baseTarget = move.target;
|
||||
if (target === void 0)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
if (move.target === "self" || move.target === "allies") {
|
||||
target = pokemon;
|
||||
}
|
||||
if (sourceEffect) {
|
||||
move.sourceEffect = sourceEffect.id;
|
||||
move.ignoreAbility = false;
|
||||
}
|
||||
let moveResult = false;
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
|
||||
if (baseTarget !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
|
||||
if (baseTarget !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
if (!move || pokemon.fainted) {
|
||||
return false;
|
||||
}
|
||||
let attrs = "";
|
||||
let movename = move.name;
|
||||
if (move.id === "hiddenpower")
|
||||
movename = "Hidden Power";
|
||||
if (sourceEffect)
|
||||
attrs += `|[from]${this.dex.conditions.get(sourceEffect)}`;
|
||||
this.battle.addMove("move", pokemon, movename, target + attrs);
|
||||
if (!target) {
|
||||
this.battle.attrLastMove("[notarget]");
|
||||
this.battle.add("-notarget", pokemon);
|
||||
return false;
|
||||
}
|
||||
const { targets, pressureTargets } = pokemon.getMoveTargets(move, target);
|
||||
if (!sourceEffect || sourceEffect.id === "pursuit") {
|
||||
let extraPP = 0;
|
||||
for (const source of pressureTargets) {
|
||||
const ppDrop = this.battle.runEvent("DeductPP", source, pokemon, move);
|
||||
if (ppDrop !== true) {
|
||||
extraPP += ppDrop || 0;
|
||||
}
|
||||
}
|
||||
if (extraPP > 0) {
|
||||
pokemon.deductPP(move, extraPP);
|
||||
}
|
||||
}
|
||||
if (!this.battle.singleEvent("TryMove", move, null, pokemon, target, move) || !this.battle.runEvent("TryMove", pokemon, target, move)) {
|
||||
move.mindBlownRecoil = false;
|
||||
return false;
|
||||
}
|
||||
this.battle.singleEvent("UseMoveMessage", move, null, pokemon, target, move);
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
if (move.selfdestruct === "always") {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
let damage = false;
|
||||
if (move.target === "all" || move.target === "foeSide" || move.target === "allySide" || move.target === "allyTeam") {
|
||||
damage = this.tryMoveHit(target, pokemon, move);
|
||||
if (damage === this.battle.NOT_FAIL)
|
||||
pokemon.moveThisTurnResult = null;
|
||||
if (damage || damage === 0 || damage === void 0)
|
||||
moveResult = true;
|
||||
} else if (move.target === "allAdjacent" || move.target === "allAdjacentFoes") {
|
||||
if (!targets.length) {
|
||||
this.battle.attrLastMove("[notarget]");
|
||||
this.battle.add("-notarget", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (targets.length > 1)
|
||||
move.spreadHit = true;
|
||||
const hitSlots = [];
|
||||
for (const source of targets) {
|
||||
const hitResult = this.tryMoveHit(source, pokemon, move);
|
||||
if (hitResult || hitResult === 0 || hitResult === void 0) {
|
||||
moveResult = true;
|
||||
hitSlots.push(source.getSlot());
|
||||
}
|
||||
if (damage) {
|
||||
damage += hitResult || 0;
|
||||
} else {
|
||||
if (damage !== false || hitResult !== this.battle.NOT_FAIL)
|
||||
damage = hitResult;
|
||||
}
|
||||
if (damage === this.battle.NOT_FAIL)
|
||||
pokemon.moveThisTurnResult = null;
|
||||
}
|
||||
if (move.spreadHit)
|
||||
this.battle.attrLastMove("[spread] " + hitSlots.join(","));
|
||||
} else {
|
||||
target = targets[0];
|
||||
let lacksTarget = !target || target.fainted;
|
||||
if (!lacksTarget) {
|
||||
if (["adjacentFoe", "adjacentAlly", "normal", "randomNormal"].includes(move.target)) {
|
||||
lacksTarget = !target.isAdjacent(pokemon);
|
||||
}
|
||||
}
|
||||
if (lacksTarget && !move.flags["futuremove"]) {
|
||||
this.battle.attrLastMove("[notarget]");
|
||||
this.battle.add("-notarget", pokemon);
|
||||
return false;
|
||||
}
|
||||
damage = this.tryMoveHit(target, pokemon, move);
|
||||
if (damage === this.battle.NOT_FAIL)
|
||||
pokemon.moveThisTurnResult = null;
|
||||
if (damage || damage === 0 || damage === void 0)
|
||||
moveResult = true;
|
||||
}
|
||||
if (move.selfBoost && moveResult)
|
||||
this.moveHit(pokemon, pokemon, move, move.selfBoost, false, true);
|
||||
if (!pokemon.hp) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
if (!moveResult) {
|
||||
this.battle.singleEvent("MoveFail", move, null, target, pokemon, move);
|
||||
return false;
|
||||
}
|
||||
if (!move.negateSecondary && !(move.hasSheerForce && pokemon.hasAbility("sheerforce"))) {
|
||||
this.battle.singleEvent("AfterMoveSecondarySelf", move, null, pokemon, target, move);
|
||||
this.battle.runEvent("AfterMoveSecondarySelf", pokemon, target, move);
|
||||
}
|
||||
return true;
|
||||
},
|
||||
tryMoveHit(target, pokemon, move) {
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
let naturalImmunity = false;
|
||||
let accPass = true;
|
||||
let hitResult = this.battle.singleEvent("PrepareHit", move, {}, target, pokemon, move) && this.battle.runEvent("PrepareHit", pokemon, target, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-fail", pokemon);
|
||||
this.battle.attrLastMove("[still]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
|
||||
return false;
|
||||
}
|
||||
if (move.target === "all" || move.target === "foeSide" || move.target === "allySide" || move.target === "allyTeam") {
|
||||
if (move.target === "all") {
|
||||
hitResult = this.battle.runEvent("TryHitField", target, pokemon, move);
|
||||
} else {
|
||||
hitResult = this.battle.runEvent("TryHitSide", target, pokemon, move);
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-fail", pokemon);
|
||||
this.battle.attrLastMove("[still]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return this.moveHit(target, pokemon, move);
|
||||
}
|
||||
hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
if (!move.spreadHit)
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon, target);
|
||||
return false;
|
||||
}
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type)) {
|
||||
naturalImmunity = true;
|
||||
} else {
|
||||
hitResult = this.battle.singleEvent("TryImmunity", move, {}, target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
naturalImmunity = true;
|
||||
}
|
||||
}
|
||||
const boostTable = [1, 4 / 3, 5 / 3, 2, 7 / 3, 8 / 3, 3];
|
||||
let accuracy = move.accuracy;
|
||||
let boosts = {};
|
||||
let boost;
|
||||
if (accuracy !== true) {
|
||||
if (!move.ignoreAccuracy) {
|
||||
boosts = this.battle.runEvent("ModifyBoost", pokemon, null, null, { ...pokemon.boosts });
|
||||
boost = this.battle.clampIntRange(boosts["accuracy"], -6, 6);
|
||||
if (boost > 0) {
|
||||
accuracy *= boostTable[boost];
|
||||
} else {
|
||||
accuracy /= boostTable[-boost];
|
||||
}
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
boosts = this.battle.runEvent("ModifyBoost", target, null, null, { ...target.boosts });
|
||||
boost = this.battle.clampIntRange(boosts["evasion"], -6, 6);
|
||||
if (boost > 0) {
|
||||
accuracy /= boostTable[boost];
|
||||
} else if (boost < 0) {
|
||||
accuracy *= boostTable[-boost];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
if (!target.isSemiInvulnerable()) {
|
||||
accuracy = 30;
|
||||
if (pokemon.level >= target.level && (move.ohko === true || !target.hasType(move.ohko))) {
|
||||
accuracy += pokemon.level - target.level;
|
||||
} else {
|
||||
this.battle.add("-immune", target, "[ohko]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("ModifyAccuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true && !this.battle.randomChance(accuracy, 100)) {
|
||||
accPass = false;
|
||||
}
|
||||
if (accPass) {
|
||||
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-fail", pokemon);
|
||||
this.battle.attrLastMove("[still]");
|
||||
}
|
||||
return false;
|
||||
} else if (naturalImmunity) {
|
||||
this.battle.add("-immune", target);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (naturalImmunity) {
|
||||
this.battle.add("-immune", target);
|
||||
} else {
|
||||
if (!move.spreadHit)
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon, target);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
move.totalDamage = 0;
|
||||
let damage = 0;
|
||||
pokemon.lastDamage = 0;
|
||||
if (move.multihit) {
|
||||
let hits = move.multihit;
|
||||
if (Array.isArray(hits)) {
|
||||
if (hits[0] === 2 && hits[1] === 5) {
|
||||
hits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
} else {
|
||||
hits = this.battle.random(hits[0], hits[1] + 1);
|
||||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
let nullDamage = true;
|
||||
let moveDamage;
|
||||
const isSleepUsable = move.sleepUsable || this.dex.moves.get(move.sourceEffect).sleepUsable;
|
||||
let i;
|
||||
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
|
||||
if (pokemon.status === "slp" && !isSleepUsable)
|
||||
break;
|
||||
move.hit = i + 1;
|
||||
if (move.multiaccuracy && i > 0) {
|
||||
accuracy = move.accuracy;
|
||||
if (accuracy !== true) {
|
||||
if (!move.ignoreAccuracy) {
|
||||
boosts = this.battle.runEvent("ModifyBoost", pokemon, null, null, { ...pokemon.boosts });
|
||||
boost = this.battle.clampIntRange(boosts["accuracy"], -6, 6);
|
||||
if (boost > 0) {
|
||||
accuracy *= boostTable[boost];
|
||||
} else {
|
||||
accuracy /= boostTable[-boost];
|
||||
}
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
boosts = this.battle.runEvent("ModifyBoost", target, null, null, { ...target.boosts });
|
||||
boost = this.battle.clampIntRange(boosts["evasion"], -6, 6);
|
||||
if (boost > 0) {
|
||||
accuracy /= boostTable[boost];
|
||||
} else if (boost < 0) {
|
||||
accuracy *= boostTable[-boost];
|
||||
}
|
||||
}
|
||||
}
|
||||
accuracy = this.battle.runEvent("ModifyAccuracy", target, pokemon, move, accuracy);
|
||||
if (!move.alwaysHit) {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
if (accuracy !== true && !this.battle.randomChance(accuracy, 100))
|
||||
break;
|
||||
}
|
||||
}
|
||||
moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false)
|
||||
break;
|
||||
if (nullDamage && (moveDamage || moveDamage === 0 || moveDamage === void 0))
|
||||
nullDamage = false;
|
||||
damage = moveDamage || 0;
|
||||
move.totalDamage += damage;
|
||||
this.battle.eachEvent("Update");
|
||||
}
|
||||
if (i === 0)
|
||||
return false;
|
||||
if (nullDamage)
|
||||
damage = false;
|
||||
this.battle.add("-hitcount", target, i);
|
||||
} else {
|
||||
damage = this.moveHit(target, pokemon, move);
|
||||
move.totalDamage = damage;
|
||||
}
|
||||
if (move.recoil && move.totalDamage) {
|
||||
this.battle.damage(this.calcRecoilDamage(move.totalDamage, move), pokemon, target, "recoil");
|
||||
}
|
||||
if (target && pokemon !== target)
|
||||
target.gotAttacked(move, damage, pokemon);
|
||||
if (move.ohko && !target.hp)
|
||||
this.battle.add("-ohko");
|
||||
if (!damage && damage !== 0)
|
||||
return damage;
|
||||
this.battle.eachEvent("Update");
|
||||
if (target && !move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondary", move, null, target, pokemon, move);
|
||||
this.battle.runEvent("AfterMoveSecondary", target, pokemon, move);
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
calcRecoilDamage(damageDealt, move) {
|
||||
return this.battle.clampIntRange(Math.floor(damageDealt * move.recoil[0] / move.recoil[1]), 1);
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/scripts.ts"],
|
||||
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen4',\r\n\tgen: 3,\r\n\tinit() {\r\n\t\tconst specialTypes = ['Fire', 'Water', 'Grass', 'Ice', 'Electric', 'Dark', 'Psychic', 'Dragon'];\r\n\t\tlet newCategory = '';\r\n\t\tfor (const i in this.data.Moves) {\r\n\t\t\tif (!this.data.Moves[i]) console.log(i);\r\n\t\t\tif (this.data.Moves[i].category === 'Status') continue;\r\n\t\t\tnewCategory = specialTypes.includes(this.data.Moves[i].type) ? 'Special' : 'Physical';\r\n\t\t\tif (newCategory !== this.data.Moves[i].category) {\r\n\t\t\t\tthis.modData('Moves', i).category = newCategory;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tpokemon: {\r\n\t\tinherit: true,\r\n\t\tgetActionSpeed() {\r\n\t\t\tlet speed = this.getStat('spe', false, false);\r\n\t\t\tif (this.battle.field.getPseudoWeather('trickroom')) {\r\n\t\t\t\tspeed = -speed;\r\n\t\t\t}\r\n\t\t\tif (this.battle.quickClawRoll && this.hasItem('quickclaw')) {\r\n\t\t\t\tspeed = 65535;\r\n\t\t\t}\r\n\t\t\treturn speed;\r\n\t\t},\r\n\t},\r\n\tactions: {\r\n\t\tinherit: true,\r\n\t\tmodifyDamage(baseDamage, pokemon, target, move, suppressMessages = false) {\r\n\t\t\t// RSE divides modifiers into several mathematically important stages\r\n\t\t\t// The modifiers run earlier than other generations are called with ModifyDamagePhase1 and ModifyDamagePhase2\r\n\r\n\t\t\tif (!move.type) move.type = '???';\r\n\t\t\tconst type = move.type;\r\n\r\n\t\t\t// Burn\r\n\t\t\tif (pokemon.status === 'brn' && baseDamage && move.category === 'Physical' && !pokemon.hasAbility('guts')) {\r\n\t\t\t\tbaseDamage = this.battle.modify(baseDamage, 0.5);\r\n\t\t\t}\r\n\r\n\t\t\t// Other modifiers (Reflect/Light Screen/etc)\r\n\t\t\tbaseDamage = this.battle.runEvent('ModifyDamagePhase1', pokemon, target, move, baseDamage);\r\n\r\n\t\t\t// Double battle multi-hit\r\n\t\t\t// In Generation 3, the spread move modifier is 0.5x instead of 0.75x. Moves that hit both foes\r\n\t\t\t// and the user's ally, like Earthquake and Explosion, don't get affected by spread modifiers\r\n\t\t\tif (move.spreadHit && move.target === 'allAdjacentFoes') {\r\n\t\t\t\tconst spreadModifier = move.spreadModifier || 0.5;\r\n\t\t\t\tthis.battle.debug('Spread modifier: ' + spreadModifier);\r\n\t\t\t\tbaseDamage = this.battle.modify(baseDamage, spreadModifier);\r\n\t\t\t}\r\n\r\n\t\t\t// Weather\r\n\t\t\tbaseDamage = this.battle.runEvent('WeatherModifyDamage', pokemon, target, move, baseDamage);\r\n\r\n\t\t\tif (move.category === 'Physical' && !Math.floor(baseDamage)) {\r\n\t\t\t\tbaseDamage = 1;\r\n\t\t\t}\r\n\r\n\t\t\tbaseDamage += 2;\r\n\r\n\t\t\tconst isCrit = target.getMoveHitData(move).crit;\r\n\t\t\tif (isCrit) {\r\n\t\t\t\tbaseDamage = this.battle.modify(baseDamage, move.critModifier || 2);\r\n\t\t\t}\r\n\r\n\t\t\t// Mod 2 (Damage is floored after all multipliers are in)\r\n\t\t\tbaseDamage = Math.floor(this.battle.runEvent('ModifyDamagePhase2', pokemon, target, move, baseDamage));\r\n\r\n\t\t\t// STAB\r\n\t\t\tif (move.forceSTAB || type !== '???' && pokemon.hasType(type)) {\r\n\t\t\t\t// The \"???\" type never gets STAB\r\n\t\t\t\t// Not even if you Roost in Gen 4 and somehow manage to use\r\n\t\t\t\t// Struggle in the same turn.\r\n\t\t\t\t// (On second thought, it might be easier to get a MissingNo.)\r\n\t\t\t\tbaseDamage = this.battle.modify(baseDamage, move.stab || 1.5);\r\n\t\t\t}\r\n\t\t\t// types\r\n\t\t\tlet typeMod = target.runEffectiveness(move);\r\n\t\t\ttypeMod = this.battle.clampIntRange(typeMod, -6, 6);\r\n\t\t\ttarget.getMoveHitData(move).typeMod = typeMod;\r\n\t\t\tif (typeMod > 0) {\r\n\t\t\t\tif (!suppressMessages) this.battle.add('-supereffective', target);\r\n\r\n\t\t\t\tfor (let i = 0; i < typeMod; i++) {\r\n\t\t\t\t\tbaseDamage *= 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (typeMod < 0) {\r\n\t\t\t\tif (!suppressMessages) this.battle.add('-resisted', target);\r\n\r\n\t\t\t\tfor (let i = 0; i > typeMod; i--) {\r\n\t\t\t\t\tbaseDamage = Math.floor(baseDamage / 2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (isCrit && !suppressMessages) this.battle.add('-crit', target);\r\n\r\n\t\t\t// Final modifier.\r\n\t\t\tbaseDamage = this.battle.runEvent('ModifyDamage', pokemon, target, move, baseDamage);\r\n\r\n\t\t\t// this is not a modifier\r\n\t\t\tbaseDamage = this.battle.randomizer(baseDamage);\r\n\r\n\t\t\tif (!Math.floor(baseDamage)) {\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\treturn Math.floor(baseDamage);\r\n\t\t},\r\n\t\tuseMoveInner(moveOrMoveName, pokemon, target, sourceEffect, zMove) {\r\n\t\t\tif (!sourceEffect && this.battle.effect.id) sourceEffect = this.battle.effect;\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'instruct') sourceEffect = null;\r\n\r\n\t\t\tlet move = this.dex.getActiveMove(moveOrMoveName);\r\n\t\t\tpokemon.lastMoveUsed = move;\r\n\r\n\t\t\tif (this.battle.activeMove) {\r\n\t\t\t\tmove.priority = this.battle.activeMove.priority;\r\n\t\t\t}\r\n\t\t\tconst baseTarget = move.target;\r\n\t\t\tif (target === undefined) target = this.battle.getRandLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AACN,UAAM,eAAe,CAAC,QAAQ,SAAS,SAAS,OAAO,YAAY,QAAQ,WAAW,QAAQ;AAC9F,QAAI,cAAc;AAClB,eAAW,KAAK,KAAK,KAAK,OAAO;AAChC,UAAI,CAAC,KAAK,KAAK,MAAM,CAAC;AAAG,gBAAQ,IAAI,CAAC;AACtC,UAAI,KAAK,KAAK,MAAM,CAAC,EAAE,aAAa;AAAU;AAC9C,oBAAc,aAAa,SAAS,KAAK,KAAK,MAAM,CAAC,EAAE,IAAI,IAAI,YAAY;AAC3E,UAAI,gBAAgB,KAAK,KAAK,MAAM,CAAC,EAAE,UAAU;AAChD,aAAK,QAAQ,SAAS,CAAC,EAAE,WAAW;AAAA,MACrC;AAAA,IACD;AAAA,EACD;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,iBAAiB;AAChB,UAAI,QAAQ,KAAK,QAAQ,OAAO,OAAO,KAAK;AAC5C,UAAI,KAAK,OAAO,MAAM,iBAAiB,WAAW,GAAG;AACpD,gBAAQ,CAAC;AAAA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