Initial Modpack Upload

This commit is contained in:
Rbanh committed 2023-08-14 21:45:09 -04:00
1 parent 268b0650aa
commit 3d8b956ee4
1429 files changed
+820128

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/abilities.ts"],
"sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\tschooling: {\r\n\t\tonStart(pokemon) {\r\n\t\t\tif (pokemon.baseSpecies.baseSpecies !== 'Wishiwashi' || pokemon.level < 20 || pokemon.transformed) return;\r\n\t\t\tif (pokemon.hp > pokemon.maxhp / 4 || pokemon.hasItem('graduationscale')) {\r\n\t\t\t\tif (pokemon.species.id === 'wishiwashi') {\r\n\t\t\t\t\tpokemon.formeChange('Wishiwashi-School');\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (pokemon.species.id === 'wishiwashischool') {\r\n\t\t\t\t\tpokemon.formeChange('Wishiwashi');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonResidualOrder: 27,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (\r\n\t\t\t\tpokemon.baseSpecies.baseSpecies !== 'Wishiwashi' || pokemon.level < 20 ||\r\n\t\t\t\tpokemon.transformed || !pokemon.hp\r\n\t\t\t) return;\r\n\t\t\tif (pokemon.hp > pokemon.maxhp / 4 || pokemon.hasItem('graduationscale')) {\r\n\t\t\t\tif (pokemon.species.id === 'wishiwashi') {\r\n\t\t\t\t\tpokemon.formeChange('Wishiwashi-School');\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (pokemon.species.id === 'wishiwashischool') {\r\n\t\t\t\t\tpokemon.formeChange('Wishiwashi');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tinherit: true,\r\n\t},\r\n\tlightpower: {\r\n\t\tonModifySpAPriority: 5,\r\n\t\tonModifySpA(spa) {\r\n\t\t\treturn this.chainModify(2);\r\n\t\t},\r\n\t\tname: \"Light Power\",\r\n\t\tshortDesc: \"This Pokemon's Special Attack is doubled.\",\r\n\t\trating: 5,\r\n\t},\r\n\traindish: {\r\n\t\tonResidualOrder: 5,\r\n\t\tonResidualSubOrder: 2,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (this.field.isWeather(['raindance', 'primordialsea'])) return;\r\n\t\t\tthis.heal(pokemon.maxhp / 16);\r\n\t\t},\r\n\t\tonWeather(target, source, effect) {\r\n\t\t\tif (effect.id === 'raindance' || effect.id === 'primordialsea') {\r\n\t\t\t\tthis.heal(target.baseMaxhp / 8);\r\n\t\t\t}\r\n\t\t},\r\n\t\tname: \"Rain Dish\",\r\n\t\tshortDesc: \"Heals 6.25% of user's max HP at the end of each turn. Heals 12.5% in Rain.\",\r\n\t\tnum: 44,\r\n\t\trating: 3,\r\n\t},\r\n\ticebody: {\r\n\t\tonResidualOrder: 5,\r\n\t\tonResidualSubOrder: 2,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (this.field.isWeather('hail')) return;\r\n\t\t\tthis.heal(pokemon.maxhp / 16);\r\n\t\t},\r\n\t\tonWeather(target, source, effect) {\r\n\t\t\tif (effect.id === 'hail') {\r\n\t\t\t\tthis.heal(target.baseMaxhp / 8);\r\n\t\t\t}\r\n\t\t},\r\n\t\tname: \"Ice Body\",\r\n\t\tshortDesc: \"Heals 6.25% of user's max HP at the end of each turn. Heals 12.5% in Hail.\",\r\n\t\tnum: 115,\r\n\t\trating: 3,\r\n\t},\r\n\tsweetveil: {\r\n\t\tname: \"Sweet Veil\",\r\n\t\tshortDesc: \"This Pokemon and its allies can't fall asleep. This Pokemon heals 1/8 of its max HP if it's holding Honey.\",\r\n\t\tonAllySetStatus(status, target, source, effect) {\r\n\t\t\tif (status.id === 'slp') {\r\n\t\t\t\tthis.debug('Sweet Veil interrupts sleep');\r\n\t\t\t\tconst effectHolder = this.effectState.target;\r\n\t\t\t\tthis.add('-block', target, 'ability: Sweet Veil', '[of] ' + effectHolder);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAllyTryAddVolatile(status, target) {\r\n\t\t\tif (status.id === 'yawn') {\r\n\t\t\t\tthis.debug('Sweet Veil blocking yawn');\r\n\t\t\t\tconst effectHolder = this.effectState.target;\r\n\t\t\t\tthis.add('-block', target, 'ability: Sweet Veil', '[of] ' + effectHolder);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonResidualOrder: 26,\r\n\t\tonResidualSubOrder: 1,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.hasItem('honey')) {\r\n\t\t\t\tthis.heal(pokemon.baseMaxhp / 8);\r\n\t\t\t}\r\n\t\t},\r\n\t\trating: 2,\r\n\t\tnum: 175,\r\n\t},\r\n\tlibero: {\r\n\t\tshortDesc: \"Non-STAB moves have 1.2x power.\",\r\n\t\tonBasePowerPriority: 23,\r\n\t\tonBasePower(basePower, pokemon, target, move) {\r\n\t\t\tif (!pokemon.hasType(move.type)) {\r\n\t\t\t\treturn this.chainModify(1.2);\r\n\t\t\t}\r\n\t\t},\r\n\t\tname: \"Libero\",\r\n\t\trating: 4.5,\r\n\t\tnum: 236,\r\n\t},\r\n\tmoody: {\r\n\t\tshortDesc: \"This Pokemon's lowest stat goes up by 1 every turn.\",\r\n\t\tonResidualOrder: 26,\r\n\t\tonResidualSubOrder: 1,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (pokemon.activeTurns) {\r\n\t\t\t\tlet statName = 'atk';\r\n\t\t\t\tlet worstStat = 3000; // The highest possible stat number (with boosts) is 2,676\r\n\t\t\t\tlet s: StatIDExceptHP;\r\n\t\t\t\tfor (s in pokemon.storedStats) {\r\n\t\t\t\t\tif (pokemon.storedStats[s] >= worstStat) continue;\r\n\t\t\t\t\tstatName = s;\r\n\t\t\t\t\tworstStat = pokemon.storedStats[s];\r\n\t\t\t\t}\r\n\t\t\t\tthis.boost({[statName]: 1}, pokemon, pokemon);\r\n\t\t\t}\r\n\t\t},\r\n\t\tname: \"Moody\",\r\n\t\trating: 3,\r\n\t\tnum: 141,\r\n\t},\r\n\tstickyhold: {\r\n\t\tonTakeItem(item, pokemon, source) {\r\n\t\t\tif (this.suppressingAbility(pokemon) || !pokemon.hp || pokemon.item === 'stickybarb') return;\r\n\t\t\tif (!this.activeMove) throw new Error(\"Battle.activeMove is null\");\r\n\t\t\tif ((source && source !== pokemon) || this.activeMove.id === Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,WAAW;AAAA,IACV,QAAQ,SAAS;AAChB,UAAI,QAAQ,YAAY,gBAAgB,gBAAgB,QAAQ,QAAQ,MAAM,QAAQ;AAAa;AACnG,UAAI,QAAQ,KAAK,QAAQ,QAAQ,KAAK,QAAQ,QAAQ,iBAAiB,GAAG;AACzE,YAAI,QAAQ,QAAQ,OAAO,cAAc;AACxC,kBAAQ,YAAY,mBAAmB;AAAA,QACxC;AAAA,MACD,OAAO;AACN,YAAI,QAAQ,QAAQ,OAAO,oBAAoB;AAC9C,kBAAQ,YAAY,YAAY;AAAA,QACjC;AAAA,MACD;AAAA,IACD;AAAA,IACA,iBAAiB;AAAA,IACjB,WAAW,SAAS;AACnB,UACC,QAAQ,YAAY,gBAAgB,gBAAgB,QAAQ,QAAQ,MACpE,QAAQ,eAAe,CAAC,QAAQ;AAC/B;AACF,UAAI,QAAQ,KAAK,QAAQ,QAAQ,KAAK,QAAQ,QAAQ,iBAAiB,GAAG;AACzE,YAAI,QAAQ,QAAQ,OAAO,cAAc;AACxC,kBAAQ,YAAY,mBAAmB;AAAA,QACxC;AAAA,MACD,OAAO;AACN,YAAI,QAAQ,QAAQ,OAAO,oBAAoB;AAC9C,kBAAQ,YAAY,YAAY;AAAA,QACjC;AAAA,MACD;AAAA,IACD;AAAA,IACA,SAAS;AAAA,EACV;AAAA,EACA,YAAY;AAAA,IACX,qBAA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IACX,WAAW,MAAMLine truncated
"names": []
}
@@ -0,0 +1,201 @@
"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 = {
silvally: {
name: "Silvally",
onTypePriority: 1,
onType(types, pokemon) {
if (pokemon.transformed || !(pokemon.ability === "rkssystem" || pokemon.ability === "powerofalchemysilvally") && this.gen >= 8) {
return types;
}
let type = "Normal";
if (pokemon.ability === "rkssystem" || pokemon.ability === "powerofalchemysilvally") {
type = pokemon.getItem().onMemory;
if (!type) {
type = "Normal";
}
}
return [type];
}
},
raindance: {
name: "RainDance",
effectType: "Weather",
duration: 5,
durationCallback(source, effect) {
if (source?.hasItem("damprock")) {
return 8;
}
return 5;
},
onWeatherModifyDamage(damage, attacker, defender, move) {
if (defender.hasItem("utilityumbrella") || attacker.hasItem("utilityumbrella") || defender.hasAbility("utilityumbrella") || attacker.hasAbility("utilityumbrella"))
return;
if (move.type === "Water") {
this.debug("rain water boost");
return this.chainModify(1.5);
}
if (move.type === "Fire") {
this.debug("rain fire suppress");
return this.chainModify(0.5);
}
},
onStart(battle, source, effect) {
if (effect?.effectType === "Ability") {
if (this.gen <= 5)
this.effectState.duration = 0;
this.add("-weather", "RainDance", "[from] ability: " + effect, "[of] " + source);
} else {
this.add("-weather", "RainDance");
}
},
onResidualOrder: 1,
onResidual() {
this.add("-weather", "RainDance", "[upkeep]");
this.eachEvent("Weather");
},
onEnd() {
this.add("-weather", "none");
}
},
primordialsea: {
name: "PrimordialSea",
effectType: "Weather",
duration: 0,
onTryMovePriority: 1,
onTryMove(attacker, defender, move) {
if (move.type === "Fire" && move.category !== "Status" && !attacker.hasItem("utilityumbrella") && !attacker.hasAbility("utilityumbrella")) {
this.debug("Primordial Sea fire suppress");
this.add("-fail", attacker, move, "[from] Primordial Sea");
this.attrLastMove("[still]");
return null;
}
},
onWeatherModifyDamage(damage, attacker, defender, move) {
if (defender.hasItem("utilityumbrella") || attacker.hasItem("utilityumbrella") || defender.hasAbility("utilityumbrella") || attacker.hasAbility("utilityumbrella"))
return;
if (move.type === "Water") {
this.debug("Rain water boost");
return this.chainModify(1.5);
}
},
onStart(battle, source, effect) {
this.add("-weather", "PrimordialSea", "[from] ability: " + effect, "[of] " + source);
},
onResidualOrder: 1,
onResidual() {
this.add("-weather", "PrimordialSea", "[upkeep]");
this.eachEvent("Weather");
},
onEnd() {
this.add("-weather", "none");
}
},
sunnyday: {
name: "SunnyDay",
effectType: "Weather",
duration: 5,
durationCallback(source, effect) {
if (source?.hasItem("heatrock")) {
return 8;
}
return 5;
},
onWeatherModifyDamage(damage, attacker, defender, move) {
if (defender.hasItem("utilityumbrella") || attacker.hasItem("utilityumbrella") || defender.hasAbility("utilityumbrella") || attacker.hasAbility("utilityumbrella"))
return;
if (move.type === "Fire") {
this.debug("Sunny Day fire boost");
return this.chainModify(1.5);
}
if (move.type === "Water" && !attacker.hasAbility("vaporcontrol")) {
this.debug("Sunny Day water suppress");
return this.chainModify(0.5);
}
},
onStart(battle, source, effect) {
if (effect?.effectType === "Ability") {
if (this.gen <= 5)
this.effectState.duration = 0;
this.add("-weather", "SunnyDay", "[from] ability: " + effect, "[of] " + source);
} else {
this.add("-weather", "SunnyDay");
}
},
onImmunity(type, pokemon) {
if (pokemon.hasItem("utilityumbrella"))
return;
if (type === "frz")
return false;
},
onResidualOrder: 1,
onResidual() {
this.add("-weather", "SunnyDay", "[upkeep]");
this.eachEvent("Weather");
},
onEnd() {
this.add("-weather", "none");
}
},
desolateland: {
name: "DesolateLand",
effectType: "Weather",
duration: 0,
onTryMovePriority: 1,
onTryMove(attacker, defender, move) {
if (move.type === "Water" && move.category !== "Status" && !attacker.hasItem("utilityumbrella") && !attacker.hasAbility("utilityumbrella")) {
this.debug("Desolate Land water suppress");
this.add("-fail", attacker, move, "[from] Desolate Land");
this.attrLastMove("[still]");
return null;
}
},
onWeatherModifyDamage(damage, attacker, defender, move) {
if (defender.hasItem("utilityumbrella") || attacker.hasItem("utilityumbrella") || defender.hasAbility("utilityumbrella") || attacker.hasAbility("utilityumbrella"))
return;
if (move.type === "Fire") {
this.debug("Sunny Day fire boost");
return this.chainModify(1.5);
}
},
onStart(battle, source, effect) {
this.add("-weather", "DesolateLand", "[from] ability: " + effect, "[of] " + source);
},
onImmunity(type, pokemon) {
if (pokemon.hasItem("utilityumbrella") || pokemon.hasAbility("utilityumbrella"))
return;
if (type === "frz")
return false;
},
onResidualOrder: 1,
onResidual() {
this.add("-weather", "DesolateLand", "[upkeep]");
this.eachEvent("Weather");
},
onEnd() {
this.add("-weather", "none");
}
}
};
//# sourceMappingURL=conditions.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/conditions.ts"],
"sourcesContent": ["export const Conditions: {[k: string]: ConditionData} = {\r\n\tsilvally: {\r\n\t\tname: 'Silvally',\r\n\t\tonTypePriority: 1,\r\n\t\tonType(types, pokemon) {\r\n\t\t\tif (pokemon.transformed ||\r\n\t\t\t\t!(pokemon.ability === 'rkssystem' || pokemon.ability === 'powerofalchemysilvally') && this.gen >= 8) {\r\n\t\t\t\treturn types;\r\n\t\t\t}\r\n\t\t\tlet type: string | undefined = 'Normal';\r\n\t\t\tif (pokemon.ability === 'rkssystem' || pokemon.ability === 'powerofalchemysilvally') {\r\n\t\t\t\ttype = pokemon.getItem().onMemory;\r\n\t\t\t\tif (!type) {\r\n\t\t\t\t\ttype = 'Normal';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn [type];\r\n\t\t},\r\n\t},\r\n\traindance: {\r\n\t\tname: 'RainDance',\r\n\t\teffectType: 'Weather',\r\n\t\tduration: 5,\r\n\t\tdurationCallback(source, effect) {\r\n\t\t\tif (source?.hasItem('damprock')) {\r\n\t\t\t\treturn 8;\r\n\t\t\t}\r\n\t\t\treturn 5;\r\n\t\t},\r\n\t\tonWeatherModifyDamage(damage, attacker, defender, move) {\r\n\t\t\tif (defender.hasItem('utilityumbrella') || attacker.hasItem('utilityumbrella') ||\r\n\t\t\t\tdefender.hasAbility('utilityumbrella') || attacker.hasAbility('utilityumbrella')) return;\r\n\t\t\tif (move.type === 'Water') {\r\n\t\t\t\tthis.debug('rain water boost');\r\n\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t}\r\n\t\t\tif (move.type === 'Fire') {\r\n\t\t\t\tthis.debug('rain fire suppress');\r\n\t\t\t\treturn this.chainModify(0.5);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonStart(battle, source, effect) {\r\n\t\t\tif (effect?.effectType === 'Ability') {\r\n\t\t\t\tif (this.gen <= 5) this.effectState.duration = 0;\r\n\t\t\t\tthis.add('-weather', 'RainDance', '[from] ability: ' + effect, '[of] ' + source);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-weather', 'RainDance');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonResidualOrder: 1,\r\n\t\tonResidual() {\r\n\t\t\tthis.add('-weather', 'RainDance', '[upkeep]');\r\n\t\t\tthis.eachEvent('Weather');\r\n\t\t},\r\n\t\tonEnd() {\r\n\t\t\tthis.add('-weather', 'none');\r\n\t\t},\r\n\t},\r\n\tprimordialsea: {\r\n\t\tname: 'PrimordialSea',\r\n\t\teffectType: 'Weather',\r\n\t\tduration: 0,\r\n\t\tonTryMovePriority: 1,\r\n\t\tonTryMove(attacker, defender, move) {\r\n\t\t\tif (move.type === 'Fire' && move.category !== 'Status' &&\r\n\t\t\t\t!attacker.hasItem('utilityumbrella') && !attacker.hasAbility('utilityumbrella')) {\r\n\t\t\t\tthis.debug('Primordial Sea fire suppress');\r\n\t\t\t\tthis.add('-fail', attacker, move, '[from] Primordial Sea');\r\n\t\t\t\tthis.attrLastMove('[still]');\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonWeatherModifyDamage(damage, attacker, defender, move) {\r\n\t\t\tif (defender.hasItem('utilityumbrella') || attacker.hasItem('utilityumbrella') ||\r\n\t\t\t\tdefender.hasAbility('utilityumbrella') || attacker.hasAbility('utilityumbrella')) return;\r\n\t\t\tif (move.type === 'Water') {\r\n\t\t\t\tthis.debug('Rain water boost');\r\n\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonStart(battle, source, effect) {\r\n\t\t\tthis.add('-weather', 'PrimordialSea', '[from] ability: ' + effect, '[of] ' + source);\r\n\t\t},\r\n\t\tonResidualOrder: 1,\r\n\t\tonResidual() {\r\n\t\t\tthis.add('-weather', 'PrimordialSea', '[upkeep]');\r\n\t\t\tthis.eachEvent('Weather');\r\n\t\t},\r\n\t\tonEnd() {\r\n\t\t\tthis.add('-weather', 'none');\r\n\t\t},\r\n\t},\r\n\tsunnyday: {\r\n\t\tname: 'SunnyDay',\r\n\t\teffectType: 'Weather',\r\n\t\tduration: 5,\r\n\t\tdurationCallback(source, effect) {\r\n\t\t\tif (source?.hasItem('heatrock')) {\r\n\t\t\t\treturn 8;\r\n\t\t\t}\r\n\t\t\treturn 5;\r\n\t\t},\r\n\t\tonWeatherModifyDamage(damage, attacker, defender, move) {\r\n\t\t\tif (defender.hasItem('utilityumbrella') || attacker.hasItem('utilityumbrella') ||\r\n\t\t\t\tdefender.hasAbility('utilityumbrella') || attacker.hasAbility('utilityumbrella')) return;\r\n\t\t\tif (move.type === 'Fire') {\r\n\t\t\t\tthis.debug('Sunny Day fire boost');\r\n\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t}\r\n\t\t\tif (move.type === 'Water' && !attacker.hasAbility('vaporcontrol')) {\r\n\t\t\t\tthis.debug('Sunny Day water suppress');\r\n\t\t\t\treturn this.chainModify(0.5);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonStart(battle, source, effect) {\r\n\t\t\tif (effect?.effectType === 'Ability') {\r\n\t\t\t\tif (this.gen <= 5) this.effectState.duration = 0;\r\n\t\t\t\tthis.add('-weather', 'SunnyDay', '[from] ability: ' + effect, '[of] ' + source);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-weather', 'SunnyDay');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonImmunity(type, pokemon) {\r\n\t\t\tif (pokemon.hasItem('utilityumbrella')) return;\r\n\t\t\tif (type === 'frz') return false;\r\n\t\t},\r\n\t\tonResidualOrder: 1,\r\n\t\tonResidual() {\r\n\t\t\tthis.add('-weather', 'SunnyDay', '[upkeep]');\r\n\t\t\tthis.eachEvent('Weather');\r\n\t\t},\r\n\t\tonEnd() {\r\n\t\t\tthis.add('-weather', 'none');\r\n\t\t},\r\n\t},\r\n\tdesolateland: {\r\n\t\tname: 'DesolateLand',\r\n\t\teffectType: 'Weather',\r\n\t\tduration: 0,\r\n\t\tonTryMovePriority: 1,\r\n\t\tonTryMove(attLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAA2C;AAAA,EACvD,UAAU;AAAA,IACT,MAAM;AAAA,IACN,gBAAgB;AAAA,IAChB,OAAO,OAAO,SAAS;AACtB,UAAI,QAAQ,eACX,EAAE,QAAQ,YAAY,eAAe,QAAQ,YAAY,6BAA6B,KAAK,OAAO,GAAG;AACrG,eAAO;AAAA,MACR;AACA,UAAI,OAA2B;AAC/B,UAAI,QAAQ,YAAY,eAAe,QAAQ,YAAY,0BAA0B;AACpF,eAAO,QAAQ,QAAQ,EAA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,WAAW,iBAAiB;AAAG;AACnF,UAAI,KAAK,SAAS,QAAQ;AACzB,aAAK,MAAM,sBAAsB;AACjC,eAAO,KAAK,YAAY,GAAG;AAAA,MAC5B;AAAA,IACD;AAAA,IACA,QAAQ,QAAQ,QAAQ,QAAQ;AAC/B,WAAK,IAAI,YAAY,gBAAgB,qBAAqB,QAAQ,UAAU,MAAM;AAAA,IACnF;AAAA,IACA,WAAW,MAAM,SAAS;AACzB,UAAI,QAAQ,QAAQ,iBAAiB,KAAK,QAAQ,WAAW,iBAAiB;AAAG;AACjF,UAAI,SAAS;AAAO,eAAO;AAAA,IAC5B;AAAA,IACA,iBAAiB;AAAA,IACjB,aAAa;AACZ,WAAK,IAAI,YAAY,gBAAgB,UAAU;AAC/C,WAAK,UAAU,SAAS;AAAA,IACzB;AAAA,IACA,QAAQ;AACP,WAAK,IAAI,YAAY,MAAM;AAAA,IAC5B;AAAA,EACD;AACD;",
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/formats-data.ts"],
"sourcesContent": ["export const FormatsData: {[k: string]: SpeciesFormatsData} = {\r\n\talakazammega: {\r\n\t\ttier: \"OU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceus: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusbug: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusdragon: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusdark: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceuselectric: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusfairy: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusfire: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusfighting: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusflying: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusground: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusgrass: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusghost: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusice: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceuspsychic: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceusrock: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceuspoison: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceuswater: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tarceussteel: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tblastoisemega: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tblazikenmega: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tcalyrexice: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tcalyrexshadow: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tcinderace: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdarkrai: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdarmanitangalar: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdeoxysattack: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdeoxys: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdeoxysspeed: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdialga: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdracovish: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tdragapult: {\r\n\t\ttier: \"OU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\teternatus: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tgenesect: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tgengarmega: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tgiratina: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tgiratinaorigin: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tgroudon: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\thooh: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tkangaskhanmega: {\r\n\t\ttier: \"UU\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tkyogre: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tkyuremblack: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tkyuremwhite: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tlandorus: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tlucariomega: {\r\n\t\ttier: \"UUBL\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tlugia: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tlunala: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tmagearna: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tmarshadow: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tmetagrossmega: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tmewtwo: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tnaganadel: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tmewtwomegax: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tmewtwomegay: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tnecrozmadawnwings: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tnecrozmaduskmane: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tnecrozmaultra: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tpalkia: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tpheromosa: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\trayquaza: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\trayquazamega: {\r\n\t\ttier: \"AG\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\treshiram: {\r\n\t\ttier: \"Uber\",\r\n\t\tdoublesTier: \"DOU\",\r\n\t},\r\n\tsalamencemegLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAiD;AAAA,EAC7D,cAAc;AAAA,IACb,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,gBAAgB;AAAA,IACf,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,aAAa;AAAA,IACZ,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,gBAAgB;AAAA,IACf,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,aAAa;AAAA,IACZ,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,aAAa;AAAA,IACZ,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACV,MA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ACA,kBAAkB;AAAA,IACjB,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,iBAAiB;AAAA,IAChB,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,oBAAoB;AAAA,IACnB,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,mBAAmB;AAAA,IAClB,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,EACd;AAAA,EACA,gBAAgB;AAAA,IACf,MAAM;AAAA,IACN,aAAa;AAAA,Line truncated
"names": []
}
+871
View File
@@ -0,0 +1,871 @@
"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 = {
boomerang: {
name: "Boomerang",
fling: {
basePower: 120
},
num: -1001,
gen: 8,
desc: "Comes back to the user when flung."
},
momentumarmor: {
name: "Momentum Armor",
fling: {
basePower: 80
},
onModifyAtkPriority: 1,
onModifyAtk(atk, pokemon) {
const def = pokemon.getStat("def", false, true);
const newAtk = atk + def / 4;
return newAtk;
},
num: -1002,
gen: 8,
desc: "Boosts the user's Attack by 25% of its Defense."
},
shellbell: {
name: "Shell Bell",
spritenum: 438,
fling: {
basePower: 40
},
onAfterMoveSecondarySelfPriority: -1,
onAfterMoveSecondarySelf(pokemon, target, move) {
if (move.category !== "Status") {
this.heal(pokemon.baseMaxhp / 8);
}
},
num: 253,
gen: 3,
desc: "The holder heals 12.5% of their max HP upon successfully damaging a Pokemon with an attack."
},
honey: {
name: "Honey",
fling: {
basePower: 30
},
num: -1003,
gen: 4,
shortDesc: "Pokemon with the ability Honey Gather or Sweet Veil heal 12.5% when holding this item."
},
eviolith: {
name: "Eviolith",
spritenum: 130,
fling: {
basePower: 40
},
onModifyAtkPriority: 2,
onModifyAtk(atk, pokemon) {
if (pokemon.baseSpecies.nfe) {
return this.chainModify(1.5);
}
},
onModifySpAPriority: 2,
onModifySpA(spa, pokemon) {
if (pokemon.baseSpecies.nfe) {
return this.chainModify(1.5);
}
},
num: -1004,
gen: 8,
desc: "If holder's species can evolve, its Atk and Sp. Atk are 1.5x."
},
reliccharm: {
name: "Relic Charm",
spritenum: 390,
onSwitchIn(pokemon) {
if (pokemon.isActive && pokemon.baseSpecies.name === "Meloetta") {
pokemon.formeChange("Meloetta-Pirouette");
}
},
onBasePower(basePower, user, target, move) {
if (move && move.type === "Fighting") {
return this.chainModify([4915, 4096]);
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Meloetta")
return false;
return true;
},
itemUser: ["Meloetta"],
num: -1005,
gen: 8,
desc: "If held by Meloetta: Pirouette Forme on entry, 1.2x power Fighting-type attacks."
},
chillpill: {
name: "Chill Pill",
spritenum: 390,
onStart(pokemon) {
if (pokemon.isActive && pokemon.baseSpecies.name === "Darmanitan") {
if (!pokemon.species.name.includes("Galar")) {
if (pokemon.species.id !== "darmanitanzen")
pokemon.formeChange("Darmanitan-Zen");
pokemon.setAbility("psychicsurge", pokemon, true);
} else {
if (pokemon.species.id !== "darmanitangalarzen")
pokemon.formeChange("Darmanitan-Galar-Zen");
pokemon.setAbility("snowwarning", pokemon, true);
}
}
},
onBasePower(basePower, user, target, move) {
if (move && (user.species.id === "darmanitanzen" && move.type === "Psychic" || user.species.id === "darmanitangalarzen" && move.type === "Fire")) {
return this.chainModify([4915, 4096]);
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Darmanitan")
return false;
return true;
},
itemUser: ["Darmanitan"],
num: -1006,
gen: 8,
desc: "If held by Darmanitan: Zen Mode and Psychic Terrain on entry, 1.2x power Psychic-type attacks."
},
chillpillg: {
name: "Chill Pill G",
spritenum: 390,
onStart(pokemon) {
this.add("-item", pokemon, "Chill Pill");
if (pokemon.baseSpecies.baseSpecies === "Darmanitan" && pokemon.species.name.includes("Galar")) {
this.add("-formechange", pokemon, "Darmanitan-Galar-Zen", "[msg]");
pokemon.formeChange("Darmanitan-Galar-Zen");
const oldAbility = pokemon.setAbility("snowwarning", pokemon, true);
if (oldAbility) {
this.add("-activate", pokemon, "ability: Snow Warning", oldAbility, "[of] " + pokemon);
}
}
},
onBasePower(basePower, user, target, move) {
if (move && user.species.id === "darmanitangalarzen" && move.type === "Fire") {
return this.chainModify([4915, 4096]);
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Darmanitan")
return false;
return true;
},
itemUser: ["Darmanitan-Galar"],
num: -1006,
gen: 8,
desc: "If held by Darmanitan: Zen Mode and Hail on entry, 1.2x power Fire-type attacks."
},
graduationscale: {
name: "Graduation Scale",
onStart(pokemon) {
pokemon.setAbility("intimidate", pokemon, true);
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Wishiwashi")
return false;
return true;
},
fling: {
basePower: 20
},
onBasePowerPriority: 6,
onBasePower(basePower, user, target, move) {
if (move && user.baseSpecies.num === 746 && move.type === "Water") {
return this.chainModify([4915, 4096]);
}
},
gen: 7,
desc: "If holder is a Wishiwashi, it becomes School Form. Its ability becomes Intimidate. Water moves are boosted by 1.2x"
},
blunderpolicy: {
name: "Blunder Policy",
spritenum: 716,
fling: {
basePower: 80
},
onUpdate(pokemon) {
if (pokemon.moveThisTurnResult === false) {
this.boost({ spe: 2 });
pokemon.useItem();
}
},
// Item activation located in scripts.js
num: 1121,
gen: 8,
desc: "+2 Speed if the holder's move fails. Single use."
},
lightball: {
name: "Light Ball",
spritenum: 251,
fling: {
basePower: 30,
status: "par"
},
onModifyAtkPriority: 1,
onModifyAtk(atk, pokemon) {
if (["Pikachu", "Raichu", "Togedemaru", "Morpeko"].includes(pokemon.baseSpecies.baseSpecies)) {
return this.chainModify(1.5);
}
},
onModifyDefPriority: 1,
onModifyDef(def, pokemon) {
if (["Emolga", "Dedenne", "Togedemaru", "Pachirisu"].includes(pokemon.baseSpecies.baseSpecies)) {
return this.chainModify(1.5);
}
},
onModifySpAPriority: 1,
onModifySpA(spa, pokemon) {
if (["Pikachu", "Raichu", "Raichu-Alola", "Plusle", "Dedenne"].includes(pokemon.baseSpecies.baseSpecies)) {
return this.chainModify(1.5);
}
},
onModifySpDPriority: 1,
onModifySpD(spd, pokemon) {
if (["Plusle", "Minun", "Pachirisu", "Morpeko"].includes(pokemon.baseSpecies.baseSpecies)) {
return this.chainModify(1.5);
}
},
onModifySpePriority: 1,
onModifySpe(spe, pokemon) {
if (["Pikachu", "Minun", "Emolga"].includes(pokemon.baseSpecies.baseSpecies)) {
return this.chainModify(1.5);
}
},
itemUser: ["Pikachu", "Raichu", "Plusle", "Minun", "Emolga", "Morpeko", "Dedenne", "Togedemaru"],
num: 236,
gen: 2,
desc: "If held by Pikachu, Raichu, or a Pikaclone, 2 of its stats are boosted 1.5x."
},
/*
soulblade: {
name: "Soul Blade",
spritenum: 297,
fling: {
basePower: 100,
},
onModifyDamage(damage, source, target, move) {
return this.chainModify([0x1199, 0x1000]);
},
gen: 8,
desc: "(Non-functional placeholder) The holder's moves deal 1.1x damage + .2x for every KO it has.",
},
*/
mentalherb: {
name: "Mental Herb",
spritenum: 285,
fling: {
basePower: 10,
effect(pokemon) {
const conditions = ["attract", "taunt", "encore", "torment", "disable", "healblock", "trashtalk"];
for (const firstCondition of conditions) {
if (pokemon.volatiles[firstCondition]) {
for (const secondCondition of conditions) {
pokemon.removeVolatile(secondCondition);
if (firstCondition === "attract" && secondCondition === "attract") {
this.add("-end", pokemon, "move: Attract", "[from] item: Mental Herb");
}
}
return;
}
}
}
},
onUpdate(pokemon) {
const conditions = ["attract", "taunt", "encore", "torment", "disable", "healblock", "trashtalk"];
for (const firstCondition of conditions) {
if (pokemon.volatiles[firstCondition]) {
if (!pokemon.useItem())
return;
for (const secondCondition of conditions) {
pokemon.removeVolatile(secondCondition);
if (firstCondition === "attract" && secondCondition === "attract") {
this.add("-end", pokemon, "move: Attract", "[from] item: Mental Herb");
}
}
return;
}
}
},
num: 219,
gen: 3
},
morningblossom: {
name: "Morning Blossom",
spritenum: 297,
fling: {
basePower: 10
},
onSwitchIn(pokemon) {
if (pokemon.isActive && pokemon.baseSpecies.name === "Cherrim") {
this.field.setWeather("desolateland");
}
},
onSwitchOut(pokemon) {
this.field.clearWeather();
},
onFaint(pokemon) {
this.field.clearWeather();
},
onBasePower(basePower, user, target, move) {
if (move && move.type === "Grass") {
return this.chainModify([4915, 4096]);
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Cherrim")
return false;
return true;
},
onUpdate(pokemon) {
if (pokemon.volatiles["embargo"]) {
this.add("-activate", pokemon, "item: Morning Blossom");
pokemon.removeVolatile("embargo");
}
},
onTryHit(pokemon, target, move) {
if (move.id === "embargo") {
this.add("-immune", pokemon, "[from] item: Morning Blossom");
return null;
}
},
itemUser: ["Cherrim"],
gen: 8,
desc: "If held by Cherrim: Desolate Land on entry, 1.2x power Grass-type attacks."
},
absorbbulb: {
name: "Absorb Bulb",
spritenum: 2,
fling: {
basePower: 30
},
onDamagingHit(damage, target, source, move) {
if (move.type === "Water") {
target.useItem();
}
},
boosts: {
def: 1,
spa: 1,
spd: 1
},
num: 545,
gen: 5,
desc: "Raises holder's Def, SpA, & SpD by 1 stage if hit by a Water-type attack. Single use."
},
cellbattery: {
name: "Cell Battery",
spritenum: 60,
fling: {
basePower: 30
},
onDamagingHit(damage, target, source, move) {
if (move.type === "Electric") {
target.useItem();
}
},
boosts: {
atk: 1,
spe: 1,
accuracy: 1
},
num: 546,
gen: 5,
desc: "Raises holder's Atk, Spe, & Acc by 1 stage if hit by an Electric-type attack. Single use."
},
luminousmoss: {
name: "Luminous Moss",
spritenum: 595,
fling: {
basePower: 30
},
onDamagingHit(damage, target, source, move) {
if (move.type === "Grass") {
target.useItem();
}
},
boosts: {
spa: 2,
spd: 2
},
num: 648,
gen: 6,
desc: "Raises holder's SpA & SpD by 2 stages if hit by a Grass-type attack. Single use."
},
snowball: {
name: "Snowball",
spritenum: 606,
fling: {
basePower: 30
},
onDamagingHit(damage, target, source, move) {
if (move.type === "Ice") {
target.useItem();
}
},
boosts: {
atk: 2,
def: 2
},
num: 649,
gen: 6,
desc: "Raises holder's Atk & Def by 2 stages if hit by an Ice-type attack. Single use."
},
coalengine: {
name: "Coal Engine",
spritenum: 297,
fling: {
basePower: 60
},
onStart(pokemon) {
if (pokemon.side.getSideCondition("stealthrock") && !pokemon.ignoringItem()) {
pokemon.useItem();
this.boost({ spe: 1 }, pokemon);
}
},
gen: 8,
desc: "If Stealth Rock is on the field, damage is ignored, and the user's Speed is raised by 1. Single use."
},
tartapple: {
name: "Tart Apple",
spritenum: 712,
fling: {
basePower: 20
},
onModifySpe(spe, pokemon) {
if (pokemon.baseSpecies.baseSpecies === "Flapple") {
return this.chainModify(1.5);
}
},
onStart(pokemon) {
if (pokemon.baseSpecies.baseSpecies === "Flapple") {
this.boost({ accuracy: 2 });
}
},
itemUser: ["Flapple"],
num: 1117,
gen: 8,
desc: "If the holder is Flapple: 1.5x Speed and +2 Accuracy."
},
sweetapple: {
name: "Sweet Apple",
spritenum: 711,
fling: {
basePower: 20
},
onResidualOrder: 5,
onResidualSubOrder: 5,
onResidual(pokemon) {
if (pokemon.baseSpecies.name === "Appletun") {
this.heal(pokemon.baseMaxhp / 8);
}
},
onSourceModifyAtkPriority: 6,
onSourceModifyAtk(atk, attacker, defender, move) {
if (move.type === "Poison") {
this.debug("Sweet Apple weaken");
return this.chainModify(0.5);
}
},
onSourceModifySpAPriority: 5,
onSourceModifySpA(atk, attacker, defender, move) {
if (move.type === "Poison") {
this.debug("Sweet Apple weaken");
return this.chainModify(0.5);
}
},
onDamage(damage, target, source, effect) {
if (effect && (effect.id === "tox" || effect.id === "psn")) {
return damage / 2;
}
},
num: 1116,
gen: 8,
desc: "If the holder is Appletun: Heals 12.5% HP every turn and takes 50% damage from Poison moves and poison status."
},
protector: {
name: "Protector",
spritenum: 367,
fling: {
basePower: 100
},
onSourceModifyDamage(damage, source, target, move) {
if (target.getMoveHitData(move).typeMod > 0 && !target.hasAbility("solidrock") && !target.hasAbility("filter")) {
this.debug("Protector neutralize");
return this.chainModify(0.75);
}
},
num: 321,
gen: 4,
desc: "Super effective attacks deal 3/4 damage to the holder."
},
powerherb: {
onChargeMove(pokemon, target, move) {
if (pokemon.useItem()) {
this.debug("power herb - remove charge turn for " + move.id);
this.attrLastMove("[still]");
this.addMove("-anim", pokemon, move.name, target);
return false;
}
},
onUpdate(pokemon) {
if (pokemon.volatiles["mustrecharge"]) {
pokemon.removeVolatile("mustrecharge");
pokemon.useItem();
}
},
name: "Power Herb",
spritenum: 358,
fling: {
basePower: 10
},
num: 271,
gen: 4,
desc: "Holder's two-turn moves and recharge complete in one turn (except Sky Drop). Single use."
},
pillow: {
name: "Pillow",
spritenum: 242,
fling: {
basePower: 10
// status: 'slp', Fixed
},
onResidualOrder: 5,
onResidualSubOrder: 5,
onResidual(pokemon) {
if (pokemon.status === "slp" || pokemon.hasAbility("comatose")) {
this.heal(pokemon.baseMaxhp / 8);
}
},
/*
onStart(pokemon) {
if (pokemon.status === 'slp' || pokemon.hasAbility('comatose')) {
pokemon.addVolatile('pillow');
}
},
condition: {
onTryMovePriority: -2,
onTryMove(pokemon, target, move) {
if (!pokemon.hasItem('pillow') || (pokemon.status !== 'slp' && !pokemon.hasAbility('comatose'))) {
pokemon.removeVolatile('pillow');
return;
}
if (pokemon.status === 'slp' || pokemon.hasAbility('comatose')) {
this.useMove("Sleep Talk", pokemon);
}
},
},
*/
gen: 8,
desc: "(Bugged) Holder heals 12.5% HP while asleep. If asleep, calls a random attack."
},
reapercloth: {
name: "Reaper Cloth",
spritenum: 385,
fling: {
basePower: 100
},
onResidualOrder: 5,
onResidualSubOrder: 5,
onResidual(pokemon) {
if (pokemon.hasType("Ghost")) {
this.heal(pokemon.baseMaxhp / 16);
}
},
onDisableMove(pokemon) {
if (!pokemon.hasType("Ghost") && pokemon.lastMove && pokemon.lastMove.id !== "struggle") {
pokemon.disableMove(pokemon.lastMove.id);
}
},
onTakeItem(item, source) {
if (source.hasType("Ghost"))
return false;
return true;
},
num: 325,
gen: 4,
desc: "Each turn, if holder is a Ghost type, restores 1/16 max HP; is Tormented if not."
},
chilipepper: {
name: "Chili Pepper",
spritenum: 13,
fling: {
basePower: 10,
status: "brn"
},
onSetStatus(status, target, source, effect) {
if (status.id !== "brn")
return;
if (effect?.status) {
this.add("-immune", target, "[from] item: Chili Pepper");
}
return false;
},
onUpdate(pokemon) {
if (pokemon.status === "frz") {
this.add("-activate", pokemon, "item: Chili Pepper");
pokemon.cureStatus();
pokemon.useItem();
}
},
desc: "The holder is immune to burns. Thaws the user and is consumed if the holder is frozen."
},
widelens: {
name: "Wide Lens",
spritenum: 537,
fling: {
basePower: 10
},
onSourceModifyAccuracyPriority: 4,
onSourceModifyAccuracy(accuracy) {
if (typeof accuracy === "number") {
return accuracy * 1.2;
}
},
num: 265,
gen: 4,
desc: "The accuracy of attacks by the holder is 1.2x."
},
zoomlens: {
name: "Zoom Lens",
spritenum: 574,
fling: {
basePower: 10
},
onSourceModifyAccuracyPriority: 4,
onSourceModifyAccuracy(accuracy, target) {
if (typeof accuracy === "number" && (!this.queue.willMove(target) || target.newlySwitched)) {
this.debug("Zoom Lens boosting accuracy");
return accuracy * 1.5;
}
},
num: 276,
gen: 4,
desc: "The accuracy of attacks by the holder is 1.5x if it moves lasts or the foe switches."
},
whippeddream: {
name: "Whipped Dream",
spritenum: 692,
fling: {
basePower: 30
},
onBasePowerPriority: 15,
onBasePower(basePower, user, target, move) {
if (move && move.type === "Fairy") {
return this.chainModify([4915, 4096]);
}
},
num: 646,
gen: 6,
desc: "Holder's Fairy-type attacks have 1.2x power."
},
ironball: {
name: "Iron Ball",
spritenum: 224,
fling: {
basePower: 130
},
onEffectiveness(typeMod, target, type, move) {
if (!target)
return;
if (target.volatiles["ingrain"] || target.volatiles["smackdown"] || this.field.getPseudoWeather("gravity"))
return;
if (move.type === "Ground" && target.hasType("Flying"))
return 0;
},
// airborneness negation implemented in sim/pokemon.js:Pokemon#isGrounded
num: 278,
gen: 4,
desc: "Holder's use of Gravity lasts 8 turns instead of 5. Grounds holder."
},
cursedbelt: {
name: "Cursed Belt",
spritenum: 13,
fling: {
basePower: 10
},
onAfterMoveSecondarySelf(target, source, move) {
if (move.category === "Status") {
target.addVolatile("disable");
}
},
onModifyDamage(damage, source, target, move) {
if (source.volatiles["disable"]) {
return this.chainModify(1.2);
}
},
desc: "When the holder uses a status move, it is disabled. Moves deal 1.2x damage while a move is disabled."
},
utilityumbrella: {
name: "Utility Umbrella",
spritenum: 718,
fling: {
basePower: 60
},
onImmunity(type, pokemon) {
if (type === "sandstorm" || type === "hail")
return false;
},
onWeather(target, source, effect) {
if (this.field.isWeather(["sunnyday", "desolateland", "hail", "raindance", "primordialsea", "sandstorm"])) {
this.heal(target.baseMaxhp / 12);
}
},
// Other effects implemented in statuses.js, moves.js, and abilities.js
num: 1123,
gen: 8,
desc: "The holder ignores rain- and sun-based effects & weather damage. Heals 1/12 of its max HP in weather."
},
nightlightball: {
name: "Nightlight Ball",
spritenum: 251,
fling: {
basePower: 90,
status: "brn"
},
onStart(pokemon) {
this.add("-item", pokemon, "Nightlight Ball");
this.add("-message", `Mimikyu's Nightlight Ball has a sinister sheen!`);
},
onModifyAtkPriority: 1,
onModifyAtk(atk, pokemon) {
if (pokemon.baseSpecies.baseSpecies === "Mimikyu") {
return this.chainModify(1.3);
}
},
onModifyDefPriority: 1,
onModifyDef(def, pokemon) {
if (pokemon.baseSpecies.baseSpecies === "Mimikyu") {
return this.chainModify(1.3);
}
},
onTryHit(target, source, move) {
if (target !== source && move.type === "Electric" && target.baseSpecies.baseSpecies === "Mimikyu") {
if (!this.heal(target.baseMaxhp / 4)) {
this.add("-immune", target, "[from] item: Nightlight Ball");
}
return null;
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Mimikyu")
return false;
return true;
},
itemUser: ["Mimikyu"],
desc: "If held by Mimikyu: 1.3x Atk and Def, Heals 1/4 of its max HP when hit by Electric moves."
},
seawaterbead: {
name: "Seawater Bead",
spritenum: 251,
fling: {
basePower: 30
},
onModifyDefPriority: 2,
onModifyDef(def, pokemon) {
if (pokemon.baseSpecies.baseSpecies === "Phione") {
return this.chainModify(1.5);
}
},
onModifySpDPriority: 2,
onModifySpD(spd, pokemon) {
if (pokemon.baseSpecies.baseSpecies === "Phione") {
return this.chainModify(1.5);
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Phione")
return false;
return true;
},
itemUser: ["Phione"],
desc: "If held by Phione: 1.5x Defense & Special Defense."
},
sacredropes: {
name: "Sacred Ropes",
spritenum: 251,
fling: {
basePower: 130
},
onStart(pokemon) {
this.add("-item", pokemon, "Sacred Ropes");
this.add("-message", `Regigigas is adorned with continent-towing ropes!`);
},
onSwitchIn(pokemon) {
if (pokemon.isActive && pokemon.baseSpecies.baseSpecies === "Regigigas") {
const oldAbility = pokemon.setAbility("thickfat", pokemon, true);
if (oldAbility) {
this.add("-activate", pokemon, "ability: Thick Fat", oldAbility, "[of] " + pokemon);
}
}
},
onSourceModifyAtkPriority: 6,
onSourceModifyAtk(atk, attacker, defender, move) {
if ((move.type === "Fighting" || move.type === "Rock") && defender.baseSpecies.baseSpecies === "Regigigas") {
this.debug("Sacred Ropes weaken");
return this.chainModify(0.75);
}
},
onSourceModifySpAPriority: 5,
onSourceModifySpA(atk, attacker, defender, move) {
if ((move.type === "Fighting" || move.type === "Rock") && defender.baseSpecies.baseSpecies === "Regigigas") {
this.debug("Sacred Ropes weaken");
return this.chainModify(0.75);
}
},
onTakeItem(item, source) {
if (source.baseSpecies.baseSpecies === "Regigigas")
return false;
return true;
},
itemUser: ["Regigigas"],
desc: "If held by Regigigas: Ability becomes Thick Fat, takes 0.75x damage from Fighting and Rock moves."
},
// soul blades
soulblade: {
name: "Soul Blade",
spritenum: 297,
fling: {
basePower: 100
},
onModifyDamage(damage, source, target, move) {
const soulBladePower = [[4505, 4096], [5324, 4096], 1.5, 1.7, 1.9, 2.1];
const soulBladeLevel = source.m.soulBladeLevel || 1;
return this.chainModify(soulBladePower[soulBladeLevel - 1]);
},
onSourceAfterFaint(length, target, source, effect) {
if (effect && effect.effectType === "Move") {
if (!source.m.soulBladeLevel)
source.m.soulBladeLevel = 1;
if (source.m.soulBladeLevel < 6)
this.add("-activate", source, "item: Soul Blade");
source.m.soulBladeLevel += 1;
if (source.m.soulBladeLevel > 6)
source.m.soulBladeLevel = 6;
}
},
gen: 8,
desc: "The holder's moves deal 1.1x damage + .2x for every KO it has."
}
};
//# sourceMappingURL=items.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/items.ts"],
"sourcesContent": ["export const Items: {[itemid: string]: ModdedItemData} = {\r\n\tboomerang: {\r\n\t\tname: \"Boomerang\",\r\n\t\tfling: {\r\n\t\t\tbasePower: 120,\r\n\t\t},\r\n\t\tnum: -1001,\r\n\t\tgen: 8,\r\n\t\tdesc: \"Comes back to the user when flung.\",\r\n\t},\r\n\tmomentumarmor: {\r\n\t\tname: \"Momentum Armor\",\r\n\t\tfling: {\r\n\t\t\tbasePower: 80,\r\n\t\t},\r\n\t\tonModifyAtkPriority: 1,\r\n\t\tonModifyAtk(atk, pokemon) {\r\n\t\t\tconst def = pokemon.getStat('def', false, true);\r\n\t\t\tconst newAtk = atk + (def / 4);\r\n\t\t\treturn newAtk;\r\n\t\t},\r\n\t\tnum: -1002,\r\n\t\tgen: 8,\r\n\t\tdesc: \"Boosts the user's Attack by 25% of its Defense.\",\r\n\t},\r\n\tshellbell: {\r\n\t\tname: \"Shell Bell\",\r\n\t\tspritenum: 438,\r\n\t\tfling: {\r\n\t\t\tbasePower: 40,\r\n\t\t},\r\n\t\tonAfterMoveSecondarySelfPriority: -1,\r\n\t\tonAfterMoveSecondarySelf(pokemon, target, move) {\r\n\t\t\tif (move.category !== 'Status') {\r\n\t\t\t\tthis.heal(pokemon.baseMaxhp / 8);\r\n\t\t\t}\r\n\t\t},\r\n\t\tnum: 253,\r\n\t\tgen: 3,\r\n\t\tdesc: \"The holder heals 12.5% of their max HP upon successfully damaging a Pokemon with an attack.\",\r\n\t},\r\n\thoney: {\r\n\t\tname: \"Honey\",\r\n\t\tfling: {\r\n\t\t\tbasePower: 30,\r\n\t\t},\r\n\t\tnum: -1003,\r\n\t\tgen: 4,\r\n\t\tshortDesc: \"Pokemon with the ability Honey Gather or Sweet Veil heal 12.5% when holding this item.\",\r\n\t},\r\n\teviolith: {\r\n\t\tname: \"Eviolith\",\r\n\t\tspritenum: 130,\r\n\t\tfling: {\r\n\t\t\tbasePower: 40,\r\n\t\t},\r\n\t\tonModifyAtkPriority: 2,\r\n\t\tonModifyAtk(atk, pokemon) {\r\n\t\t\tif (pokemon.baseSpecies.nfe) {\r\n\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonModifySpAPriority: 2,\r\n\t\tonModifySpA(spa, pokemon) {\r\n\t\t\tif (pokemon.baseSpecies.nfe) {\r\n\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t}\r\n\t\t},\r\n\t\tnum: -1004,\r\n\t\tgen: 8,\r\n\t\tdesc: \"If holder's species can evolve, its Atk and Sp. Atk are 1.5x.\",\r\n\t},\r\n\treliccharm: {\r\n\t\tname: \"Relic Charm\",\r\n\t\tspritenum: 390,\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\tif (pokemon.isActive && pokemon.baseSpecies.name === 'Meloetta') {\r\n\t\t\t\tpokemon.formeChange('Meloetta-Pirouette');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBasePower(basePower, user, target, move) {\r\n\t\t\tif (move && move.type === 'Fighting') {\r\n\t\t\t\treturn this.chainModify([0x1333, 0x1000]);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (source.baseSpecies.baseSpecies === 'Meloetta') return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\titemUser: [\"Meloetta\"],\r\n\t\tnum: -1005,\r\n\t\tgen: 8,\r\n\t\tdesc: \"If held by Meloetta: Pirouette Forme on entry, 1.2x power Fighting-type attacks.\",\r\n\t},\r\n\tchillpill: {\r\n\t\tname: \"Chill Pill\",\r\n\t\tspritenum: 390,\r\n\t\tonStart(pokemon) {\r\n\t\t\tif (pokemon.isActive && pokemon.baseSpecies.name === 'Darmanitan') {\r\n\t\t\t\tif (!pokemon.species.name.includes('Galar')) {\r\n\t\t\t\t\tif (pokemon.species.id !== 'darmanitanzen') pokemon.formeChange('Darmanitan-Zen');\r\n\t\t\t\t\tpokemon.setAbility('psychicsurge', pokemon, true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (pokemon.species.id !== 'darmanitangalarzen') pokemon.formeChange('Darmanitan-Galar-Zen');\r\n\t\t\t\t\tpokemon.setAbility('snowwarning', pokemon, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBasePower(basePower, user, target, move) {\r\n\t\t\tif (move && (\r\n\t\t\t\t(user.species.id === 'darmanitanzen' && move.type === 'Psychic') ||\r\n\t\t\t\t\t(user.species.id === 'darmanitangalarzen') && (move.type === 'Fire')\r\n\t\t\t)) {\r\n\t\t\t\treturn this.chainModify([0x1333, 0x1000]);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (source.baseSpecies.baseSpecies === 'Darmanitan') return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\titemUser: [\"Darmanitan\"],\r\n\t\tnum: -1006,\r\n\t\tgen: 8,\r\n\t\tdesc: \"If held by Darmanitan: Zen Mode and Psychic Terrain on entry, 1.2x power Psychic-type attacks.\",\r\n\t},\r\n\tchillpillg: {\r\n\t\tname: \"Chill Pill G\",\r\n\t\tspritenum: 390,\r\n\t\tonStart(pokemon) {\r\n\t\t\tthis.add('-item', pokemon, 'Chill Pill');\r\n\t\t\tif (pokemon.baseSpecies.baseSpecies === 'Darmanitan' && pokemon.species.name.includes('Galar')) {\r\n\t\t\t\tthis.add('-formechange', pokemon, 'Darmanitan-Galar-Zen', '[msg]');\r\n\t\t\t\tpokemon.formeChange(\"Darmanitan-Galar-Zen\");\r\n\t\t\t\tconst oldAbility = pokemon.setAbility('snowwarning', pokemon, true);\r\n\t\t\t\tif (oldAbility) {\r\n\t\t\t\t\tthis.add('-activate', pokemon, 'ability: Snow Warning', oldAbility, '[of] ' + pokemon);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBasePower(basePower, user, target, move) {\r\n\t\t\tif (move && user.species.id === 'darmanitangalarzen' && move.type === 'Fire') {\r\n\t\t\t\treturn this.chainModify([0x1333, 0x1000]);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (source.baseSpecies.baseSpecies === 'Darmanitan') return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAA4C;AAAA,EACxD,WAAW;AAAA,IACV,MAAM;AAAA,IACN,OAAO;AAAA,MACN,WAAW;AAAA,IACZ;AAAA,IACA,KAAK;AAAA,IACL,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AAAA,EACA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,OAAO;AAAA,MACN,WAAW;AAAA,IACZ;AAAA,IACA,qBAAqB;AAAA,IACrB,YAAY,KAAK,SAAS;AACzB,YAAM,MAAM,QAAQ,QAAQ,OAAO,OAAO,IAAI;AAC9C,YAAM,SAAS,MAAO,MAAM;AAC5B,aAAO;AAAA,IACR;AAAA,IACA,KAAK;AAAA,IACL,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,OAAO;AAAA,MACN,WAAW;AAAA,IACZ;AAAA,IACA,kCAAkC;AAAA,IAClC,yBAAyB,SAAS,QAAQ,MAAM;AAC/C,UAAI,KAAK,aAAa,UAAU;AAC/B,aAAK,KAAK,QAAQ,YAAY,CAAC;AAAA,MAChC;AAAA,IACD;AAAA,IACA,KAAK;AAAA,IACL,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AAAA,EACA,OAAO;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,MACN,WAAW;AAAA,IACZ;AAAA,IACA,KAAK;AAAA,IACL,KA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0 +1,192 @@
"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 learnsets_exports = {};
__export(learnsets_exports, {
Learnsets: () => Learnsets
});
module.exports = __toCommonJS(learnsets_exports);
const Learnsets = {
articunogalar: {
learnset: {
agility: ["8M", "8L20"],
airslash: ["8M"],
allyswitch: ["8M"],
ancientpower: ["8L25"],
bravebird: ["8M"],
calmmind: ["8M"],
confusion: ["8L5"],
dreameater: ["8L50"],
dualwingbeat: ["8T"],
endure: ["8M"],
expandingforce: ["8T"],
facade: ["8M"],
fly: ["8M"],
freezingglare: ["8L45", "8S0", "8S1"],
futuresight: ["8M", "8L65"],
gigaimpact: ["8M"],
guardswap: ["8M"],
gust: ["8L1"],
hurricane: ["8M", "8L55", "8S0", "8S1"],
hyperbeam: ["8M"],
hypervoice: ["8M"],
hypnosis: ["8L15"],
imprison: ["8M"],
lightscreen: ["8M"],
mindreader: ["8L60"],
powerswap: ["8M"],
protect: ["8M"],
psychic: ["8M"],
psychocut: ["8M", "8L35", "8S0", "8S1"],
psychoshift: ["8L1", "8S0", "8S1"],
psyshock: ["8M"],
recover: ["8L40"],
reflect: ["8M", "8L10"],
rest: ["8M"],
round: ["8M"],
scaryface: ["8M"],
shadowball: ["8M"],
skillswap: ["8M"],
sleeptalk: ["8M"],
snore: ["8M"],
steelwing: ["8M"],
storedpower: ["8M"],
substitute: ["8M"],
swift: ["8M"],
tailwind: ["8L30"],
trickroom: ["8M", "8L70"],
uturn: ["8M"]
},
eventData: [
{ generation: 8, level: 70, moves: ["freezingglare", "hurricane", "psychocut", "psychoshift"] },
{ generation: 8, level: 70, shiny: true, moves: ["freezingglare", "hurricane", "psychocut", "psychoshift"], pokeball: "cherishball" }
],
eventOnly: true
},
zapdosgalar: {
learnset: {
acrobatics: ["8M"],
agility: ["8M", "8L20"],
ancientpower: ["8L25"],
assurance: ["8M"],
blazekick: ["8M"],
bounce: ["8M"],
bravebird: ["8M"],
brickbreak: ["8M", "8L30"],
bulkup: ["8M", "8L50"],
closecombat: ["8M", "8L65"],
coaching: ["8T"],
counter: ["8L55"],
detect: ["8L60"],
drillpeck: ["8L35", "8S0", "8S1"],
dualwingbeat: ["8T"],
endure: ["8M"],
facade: ["8M"],
fly: ["8M"],
focusenergy: ["8M", "8L1", "8S0", "8S1"],
gigaimpact: ["8M"],
hurricane: ["8M"],
hyperbeam: ["8M"],
lightscreen: ["8M", "8L10"],
lowkick: ["8M"],
lowsweep: ["8M"],
megakick: ["8M"],
payback: ["8M"],
peck: ["8L1"],
pluck: ["8L15"],
protect: ["8M"],
quickguard: ["8L40"],
rest: ["8M"],
retaliate: ["8M"],
revenge: ["8M"],
reversal: ["8M", "8L70", "8S0", "8S1"],
rocksmash: ["8L5"],
round: ["8M"],
scaryface: ["8M"],
screech: ["8M"],
sleeptalk: ["8M"],
snore: ["8M"],
steelwing: ["8M"],
stompingtantrum: ["8M"],
substitute: ["8M"],
superpower: ["8M"],
swift: ["8M"],
taunt: ["8M"],
throatchop: ["8M"],
thunderouskick: ["8L45", "8S0", "8S1"],
uturn: ["8M"]
},
eventData: [
{ generation: 8, level: 70, moves: ["thunderouskick", "drillpeck", "reversal", "focusenergy"] },
{ generation: 8, level: 70, shiny: true, moves: ["thunderouskick", "drillpeck", "reversal", "focusenergy"], pokeball: "cherishball" }
],
eventOnly: true
},
moltresgalar: {
learnset: {
afteryou: ["8L40"],
agility: ["8M", "8L20"],
airslash: ["8M", "8L35"],
ancientpower: ["8L25"],
assurance: ["8M"],
bravebird: ["8M"],
darkpulse: ["8M"],
dualwingbeat: ["8T"],
endure: ["8M", "8L60"],
facade: ["8M"],
fierywrath: ["8L45", "8S0", "8S1"],
fly: ["8M"],
foulplay: ["8M"],
gigaimpact: ["8M"],
gust: ["8L1"],
hex: ["8M"],
hurricane: ["8M", "8L55", "8S0", "8S1"],
hyperbeam: ["8M"],
hypervoice: ["8M"],
imprison: ["8M"],
lashout: ["8T"],
leer: ["8L1"],
memento: ["8L65"],
nastyplot: ["8M", "8L50", "8S0", "8S1"],
payback: ["8M", "8L5"],
protect: ["8M"],
rest: ["8M"],
round: ["8M"],
safeguard: ["8M", "8L10"],
scaryface: ["8M"],
shadowball: ["8M"],
skyattack: ["8L70"],
sleeptalk: ["8M"],
snarl: ["8M"],
snore: ["8M"],
steelwing: ["8M"],
substitute: ["8M"],
suckerpunch: ["8L30", "8S0", "8S1"],
swift: ["8M"],
taunt: ["8M"],
uturn: ["8M"],
wingattack: ["8L15"]
},
eventData: [
{ generation: 8, level: 70, moves: ["fierywrath", "hurricane", "suckerpunch", "nastyplot"] },
{ generation: 8, level: 70, shiny: true, moves: ["fierywrath", "hurricane", "suckerpunch", "nastyplot"], pokeball: "cherishball" }
],
eventOnly: true
}
};
//# sourceMappingURL=learnsets.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/learnsets.ts"],
"sourcesContent": ["/* eslint-disable max-len */\r\n\r\nexport const Learnsets: {[k: string]: LearnsetData} = {\r\n\tarticunogalar: {\r\n\t\tlearnset: {\r\n\t\t\tagility: [\"8M\", \"8L20\"],\r\n\t\t\tairslash: [\"8M\"],\r\n\t\t\tallyswitch: [\"8M\"],\r\n\t\t\tancientpower: [\"8L25\"],\r\n\t\t\tbravebird: [\"8M\"],\r\n\t\t\tcalmmind: [\"8M\"],\r\n\t\t\tconfusion: [\"8L5\"],\r\n\t\t\tdreameater: [\"8L50\"],\r\n\t\t\tdualwingbeat: [\"8T\"],\r\n\t\t\tendure: [\"8M\"],\r\n\t\t\texpandingforce: [\"8T\"],\r\n\t\t\tfacade: [\"8M\"],\r\n\t\t\tfly: [\"8M\"],\r\n\t\t\tfreezingglare: [\"8L45\", \"8S0\", \"8S1\"],\r\n\t\t\tfuturesight: [\"8M\", \"8L65\"],\r\n\t\t\tgigaimpact: [\"8M\"],\r\n\t\t\tguardswap: [\"8M\"],\r\n\t\t\tgust: [\"8L1\"],\r\n\t\t\thurricane: [\"8M\", \"8L55\", \"8S0\", \"8S1\"],\r\n\t\t\thyperbeam: [\"8M\"],\r\n\t\t\thypervoice: [\"8M\"],\r\n\t\t\thypnosis: [\"8L15\"],\r\n\t\t\timprison: [\"8M\"],\r\n\t\t\tlightscreen: [\"8M\"],\r\n\t\t\tmindreader: [\"8L60\"],\r\n\t\t\tpowerswap: [\"8M\"],\r\n\t\t\tprotect: [\"8M\"],\r\n\t\t\tpsychic: [\"8M\"],\r\n\t\t\tpsychocut: [\"8M\", \"8L35\", \"8S0\", \"8S1\"],\r\n\t\t\tpsychoshift: [\"8L1\", \"8S0\", \"8S1\"],\r\n\t\t\tpsyshock: [\"8M\"],\r\n\t\t\trecover: [\"8L40\"],\r\n\t\t\treflect: [\"8M\", \"8L10\"],\r\n\t\t\trest: [\"8M\"],\r\n\t\t\tround: [\"8M\"],\r\n\t\t\tscaryface: [\"8M\"],\r\n\t\t\tshadowball: [\"8M\"],\r\n\t\t\tskillswap: [\"8M\"],\r\n\t\t\tsleeptalk: [\"8M\"],\r\n\t\t\tsnore: [\"8M\"],\r\n\t\t\tsteelwing: [\"8M\"],\r\n\t\t\tstoredpower: [\"8M\"],\r\n\t\t\tsubstitute: [\"8M\"],\r\n\t\t\tswift: [\"8M\"],\r\n\t\t\ttailwind: [\"8L30\"],\r\n\t\t\ttrickroom: [\"8M\", \"8L70\"],\r\n\t\t\tuturn: [\"8M\"],\r\n\t\t},\r\n\t\teventData: [\r\n\t\t\t{generation: 8, level: 70, moves: [\"freezingglare\", \"hurricane\", \"psychocut\", \"psychoshift\"]},\r\n\t\t\t{generation: 8, level: 70, shiny: true, moves: [\"freezingglare\", \"hurricane\", \"psychocut\", \"psychoshift\"], pokeball: \"cherishball\"},\r\n\t\t],\r\n\t\teventOnly: true,\r\n\t},\r\n\tzapdosgalar: {\r\n\t\tlearnset: {\r\n\t\t\tacrobatics: [\"8M\"],\r\n\t\t\tagility: [\"8M\", \"8L20\"],\r\n\t\t\tancientpower: [\"8L25\"],\r\n\t\t\tassurance: [\"8M\"],\r\n\t\t\tblazekick: [\"8M\"],\r\n\t\t\tbounce: [\"8M\"],\r\n\t\t\tbravebird: [\"8M\"],\r\n\t\t\tbrickbreak: [\"8M\", \"8L30\"],\r\n\t\t\tbulkup: [\"8M\", \"8L50\"],\r\n\t\t\tclosecombat: [\"8M\", \"8L65\"],\r\n\t\t\tcoaching: [\"8T\"],\r\n\t\t\tcounter: [\"8L55\"],\r\n\t\t\tdetect: [\"8L60\"],\r\n\t\t\tdrillpeck: [\"8L35\", \"8S0\", \"8S1\"],\r\n\t\t\tdualwingbeat: [\"8T\"],\r\n\t\t\tendure: [\"8M\"],\r\n\t\t\tfacade: [\"8M\"],\r\n\t\t\tfly: [\"8M\"],\r\n\t\t\tfocusenergy: [\"8M\", \"8L1\", \"8S0\", \"8S1\"],\r\n\t\t\tgigaimpact: [\"8M\"],\r\n\t\t\thurricane: [\"8M\"],\r\n\t\t\thyperbeam: [\"8M\"],\r\n\t\t\tlightscreen: [\"8M\", \"8L10\"],\r\n\t\t\tlowkick: [\"8M\"],\r\n\t\t\tlowsweep: [\"8M\"],\r\n\t\t\tmegakick: [\"8M\"],\r\n\t\t\tpayback: [\"8M\"],\r\n\t\t\tpeck: [\"8L1\"],\r\n\t\t\tpluck: [\"8L15\"],\r\n\t\t\tprotect: [\"8M\"],\r\n\t\t\tquickguard: [\"8L40\"],\r\n\t\t\trest: [\"8M\"],\r\n\t\t\tretaliate: [\"8M\"],\r\n\t\t\trevenge: [\"8M\"],\r\n\t\t\treversal: [\"8M\", \"8L70\", \"8S0\", \"8S1\"],\r\n\t\t\trocksmash: [\"8L5\"],\r\n\t\t\tround: [\"8M\"],\r\n\t\t\tscaryface: [\"8M\"],\r\n\t\t\tscreech: [\"8M\"],\r\n\t\t\tsleeptalk: [\"8M\"],\r\n\t\t\tsnore: [\"8M\"],\r\n\t\t\tsteelwing: [\"8M\"],\r\n\t\t\tstompingtantrum: [\"8M\"],\r\n\t\t\tsubstitute: [\"8M\"],\r\n\t\t\tsuperpower: [\"8M\"],\r\n\t\t\tswift: [\"8M\"],\r\n\t\t\ttaunt: [\"8M\"],\r\n\t\t\tthroatchop: [\"8M\"],\r\n\t\t\tthunderouskick: [\"8L45\", \"8S0\", \"8S1\"],\r\n\t\t\tuturn: [\"8M\"],\r\n\t\t},\r\n\t\teventData: [\r\n\t\t\t{generation: 8, level: 70, moves: [\"thunderouskick\", \"drillpeck\", \"reversal\", \"focusenergy\"]},\r\n\t\t\t{generation: 8, level: 70, shiny: true, moves: [\"thunderouskick\", \"drillpeck\", \"reversal\", \"focusenergy\"], pokeball: \"cherishball\"},\r\n\t\t],\r\n\t\teventOnly: true,\r\n\t},\r\n\tmoltresgalar: {\r\n\t\tlearnset: {\r\n\t\t\tafteryou: [\"8L40\"],\r\n\t\t\tagility: [\"8M\", \"8L20\"],\r\n\t\t\tairslash: [\"8M\", \"8L35\"],\r\n\t\t\tancientpower: [\"8L25\"],\r\n\t\t\tassurance: [\"8M\"],\r\n\t\t\tbravebird: [\"8M\"],\r\n\t\t\tdarkpulse: [\"8M\"],\r\n\t\t\tdualwingbeat: [\"8T\"],\r\n\t\t\tendure: [\"8M\", \"8L60\"],\r\n\t\t\tfacade: [\"8M\"],\r\n\t\t\tfierywrath: [\"8L45\", \"8S0\", \"8S1\"],\r\n\t\t\tfly: [\"8M\"],\r\n\t\t\tfoulplay: [\"8M\"],\r\n\t\t\tgigaimpact: [\"8M\"],\r\n\t\t\tgust: [\"8L1\"],\r\n\t\t\thex: [\"8M\"],\r\n\t\t\thurricane: [\"8M\", \"8L55\", \"8S0\", \"8S1\"],\r\n\t\t\thyperbeam: [\"8M\"],\r\n\t\t\thypervoice: [\"8M\"],\r\n\t\t\timprison: [\"8M\"],\r\n\t\t\tlashout: [\"8T\"],\r\n\t\t\tleer: [\"8L1\"],\r\n\t\t\tmemento: [\"8L65\"],\r\n\t\t\tnastyplot: [\"8M\", \"8L50\", \"8S0\", \"8S1\"],\r\n\t\t\tpayback: [\"8M\", \"8L5\"],\r\n\t\t\tprotect: [\"8M\"],\r\n\t\t\trest: [\"8M\"],\r\n\t\t\tround: [\"8M\"],\r\n\t\t\tsafeguard: [\"Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,YAAyC;AAAA,EACrD,eAAe;AAAA,IACd,UAAU;AAAA,MACT,SAAS,CAAC,MAAM,MAAM;AAAA,MACtB,UAAU,CAAC,IAAI;AAAA,MACf,YAAY,CAAC,IAAI;AAAA,MACjB,cAAc,CAAC,MAAM;AAAA,MACrB,WAAW,CAAC,IAAI;AAAA,MAChB,UAAU,CAAC,IAAI;AAAA,MACf,WAAW,CAAC,KAAK;AAAA,MACjB,YAAY,CAAC,MAAM;AAAA,MACnB,cAAc,CAAC,IAAI;AAAA,MACnB,QAAQ,CAAC,IAAI;AAAA,MACb,gBAAgB,CAAC,IAAI;AAAA,MACrB,QAAQ,CAAC,IAAI;AAAA,MACb,KAAK,CAAC,IAAI;AAAA,MACV,eAAe,CAAC,QAAQ,OAAO,KAAK;AAAA,MACpC,aAAa,CAAC,MAAM,MAAM;AAAA,MAC1B,YAAY,CAAC,IAAI;AAAA,MACjB,WAAW,CAAC,IAAI;AAAA,MAChB,MAAM,CAAC,KAAK;AAAA,MACZ,WAAW,CAAC,MAAM,QAAQ,OAAO,KAAK;AAAA,MACtC,WAAW,CAAC,IAAI;AAAA,MAChB,Y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AC,IAAI;AAAA,MACd,MAAM,CAAC,KAAK;AAAA,MACZ,SAAS,CAAC,MAAM;AAAA,MAChB,WAAW,CAAC,MAAM,QAAQ,OAAO,KAAK;AAAA,MACtC,SAAS,CAAC,MAAM,KAAK;AAAA,MACrB,SAAS,CAAC,IAAI;AAAA,MACd,MAAM,CAAC,IAAI;AAAA,MACX,OAAO,CAAC,IAAI;AAAA,MACZ,WAAW,CAAC,MAAM,MAAM;AAAA,MACxB,WAAW,CAAC,IAAI;AAAA,MAChB,YAAY,CAAC,IAAI;AAAA,MACjB,WAAW,CAAC,MAAM;AAAA,MAClB,WAAW,CAAC,IAAI;AAAA,MAChB,OAAO,CAAC,IAAI;AAAA,MACZ,OAAO,CAAC,IAAI;AAAA,MACZ,WAAW,CAAC,IAAI;AAAA,MAChB,YAAY,CAAC,IAAI;AAAA,MACjB,aAAa,CAAC,QAAQ,OAAO,KAAK;AAAA,MAClC,OAAO,CAAC,IAAI;AAAA,MACZ,OAAO,CAAC,IAAI;AAAA,MACZ,OAAO,CAAC,IAAI;AAAA,MACZ,YAAY,CAAC,MAAM;AAAA,IACpB;AAAA,IACA,WAAW;AAAA,MACV,EAAC,YAAY,GAAG,OAAO,IAAI,OAAO,CAAC,cAAc,aAAa,eAAe,WAAW,EAAC;AAAA,MACzF,EAAC,YAAY,GAAG,OAAO,IAAI,OAAO,MAAM,OAAO,CAAC,cAAc,aAAa,eAAe,WAAW,GAAG,UAAU,cAAa;AAAA,IAChI;AAAA,IACA,WAAW;AAAA,EACZ;AACD;",
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/moves.ts"],
"sourcesContent": ["export const Moves: {[k: string]: ModdedMoveData} = {\r\n\ttoxicthread: {\r\n\t\tnum: 672,\r\n\t\taccuracy: 100,\r\n\t\tbasePower: 0,\r\n\t\tcategory: \"Status\",\r\n\t\tshortDesc: \"Badly poisons and lowers the target's Speed by 2\",\r\n\t\tname: \"Toxic Thread\",\r\n\t\tpp: 20,\r\n\t\tpriority: 0,\r\n\t\tflags: {protect: 1, reflectable: 1, mirror: 1},\r\n\t\tstatus: 'tox',\r\n\t\tboosts: {\r\n\t\t\tspe: -2,\r\n\t\t},\r\n\t\tsecondary: null,\r\n\t\ttarget: \"normal\",\r\n\t\ttype: \"Poison\",\r\n\t\tzMove: {boost: {spe: 1}},\r\n\t\tcontestType: \"Tough\",\r\n\t},\r\n\tmeltingpoint: {\r\n\t\taccuracy: 100,\r\n\t\tbasePower: 80,\r\n\t\tcategory: \"Special\",\r\n\t\tshortDesc: \"Replaces the user's Ice-type with Water. 1.5x power when used by Ice-types. Soaks foe.\",\r\n\t\tname: \"Melting Point\",\r\n\t\tpp: 10,\r\n\t\tpriority: 0,\r\n\t\tflags: {protect: 1, mirror: 1, defrost: 1},\r\n\t\tonPrepareHit(target, source, move) {\r\n\t\t\tthis.attrLastMove('[still]');\r\n\t\t\tthis.add('-anim', source, \"Scald\", target);\r\n\t\t\tthis.add('-anim', source, \"Acid Armor\", target);\r\n\t\t},\r\n\t\tonBasePower(basePower, pokemon, target) {\r\n\t\t\tif (pokemon.hasType('Ice')) {\r\n\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonHit(target) {\r\n\t\t\tif (target.getTypes().join() === 'Water' || !target.setType('Water')) {\r\n\t\t\t\t// Soak should animate even when it fails.\r\n\t\t\t\t// Returning false would suppress the animation.\r\n\t\t\t\tthis.add('-fail', target);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tthis.add('-start', target, 'typechange', 'Water');\r\n\t\t},\r\n\t\tself: {\r\n\t\t\tonHit(pokemon) {\r\n\t\t\t\tif (pokemon.hasType('Water')) {\r\n\t\t\t\t\tpokemon.setType(pokemon.getTypes(true).map(type => type === \"Ice\" ? \"???\" : type));\r\n\t\t\t\t\tthis.add('-start', pokemon, 'typechange', pokemon.types.join('/'), '[from] move: Melting Point');\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpokemon.setType(pokemon.getTypes(true).map(type => type === \"Ice\" ? \"Water\" : type));\r\n\t\t\t\t\tthis.add('-start', pokemon, 'typechange', pokemon.types.join('/'), '[from] move: Melting Point');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tsecondary: null,\r\n\t\ttarget: \"normal\",\r\n\t\ttype: \"Water\",\r\n\t\tcontestType: \"Clever\",\r\n\t},\r\n\t/*\r\n\treconstruct: {\r\n\t\taccuracy: true,\r\n\t\tbasePower: 0,\r\n\t\tcategory: \"Status\",\r\n\t\tshortDesc: \"(Bugged) Charges turn 1. Heals 50% and resets lowered stats turn 2.\",\r\n\t\tname: \"Reconstruct\",\r\n\t\tpp: 10,\r\n\t\tpriority: 0,\r\n\t\tflags: {charge: 1, heal: 1},\r\n\t\theal: [1, 2],\r\n\t\tbeforeTurnCallback(pokemon) {\r\n\t\t\tpokemon.addVolatile('reconstruct');\r\n\t\t},\r\n\t\tcondition: {\r\n\t\t\tduration: 2,\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.add('-start', pokemon, 'move: Reconstruct');\r\n\t\t\t},\r\n\t\t\tonSourceModifyDamage(damage, source, target, move) {\r\n\t\t\t\tif (move.category === 'Special' || move.category === 'Physical') {\r\n\t\t\t\t\treturn this.chainModify(0.5);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonTryMove(attacker, defender, move) {\r\n\t\t\t\tif (attacker.removeVolatile(move.id)) return;\r\n\t\t\t\tthis.add('-prepare', attacker, move.name);\r\n\t\t\t\tif (!this.runEvent('ChargeMove', attacker, defender, move)) return;\r\n\t\t\t\tattacker.addVolatile('twoturnmove', defender);\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t},\r\n\t\tonAfterMove(pokemon) {\r\n\t\t\tpokemon.removeVolatile('reconstruct');\r\n\t\t},\r\n\t\tself: {\r\n\t\t\tonHit(pokemon) {\r\n\t\t\t\tconst boosts: SparseBoostsTable = {};\r\n\t\t\t\tlet i: BoostName;\r\n\t\t\t\tfor (i in pokemon.boosts) {\r\n\t\t\t\t\tif (pokemon.boosts[i] < 0) {\r\n\t\t\t\t\t\tboosts[i] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tpokemon.setBoost(boosts);\r\n\t\t\t\tthis.add('-clearnegativeboost', pokemon, '[silent]');\r\n\t\t\t\tthis.add('-message', pokemon.name + \"'s negative stat changes were removed!\");\r\n\t\t\t},\r\n\t\t},\r\n\t\tsecondary: null,\r\n\t\ttarget: \"self\",\r\n\t\ttype: \"Steel\",\r\n\t},\r\n\treconstruct: {\r\n\t\taccuracy: true,\r\n\t\tbasePower: 0,\r\n\t\tcategory: \"Status\",\r\n\t\tshortDesc: \"Charges turn 1. Heals 50% and resets lowered stats turn 2.\",\r\n\t\tname: \"Reconstruct\",\r\n\t\tpp: 10,\r\n\t\tpriority: 0,\r\n\t\tflags: {charge: 1, heal: 1},\r\n\t\theal: [1, 2],\r\n\t\tonTryMove(attacker, defender, move) {\r\n\t\t\tif (attacker.removeVolatile(move.id)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('-prepare', attacker, move.name);\r\n\t\t\tif (!this.runEvent('ChargeMove', attacker, defender, move)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tattacker.addVolatile('twoturnmove', defender);\r\n\t\t\treturn null;\r\n\t\t},\r\n\t\tself: {\r\n\t\t\tonHit(pokemon) {\r\n\t\t\t\tconst boosts: SparseBoostsTable = {};\r\n\t\t\t\tlet i: BoostName;\r\n\t\t\t\tfor (i in pokemon.boosts) {\r\n\t\t\t\t\tif (pokemon.boosts[i] < 0) {\r\n\t\t\t\t\t\tboosts[i] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tpokemon.setBLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,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;AAAA,MACL,MAAM,SAAS,QAAQ,MAAM;AAC5B,aAAK,KAAK,OAAO,YAAY,GAAG,QAAQ,OAAO;AAAA,MAChD;AAAA,IACD;AAAA,IACA,WAAW,QAAQ,QAAQ;AAC1B,UAAI,OAAO,QAAQ,OAAO,GAAG;AAC5B,aAAK,KAAK,OAAO,YAAY,GAAG,QAAQ,MAAM;AAC9C,aAAK,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM;AAAA,MAC5B;AACA,UAAI,OAAO,QAAQ,OAAO,GAAG;AAC5B,aAAK,KAAK,OAAO,YAAY,GAAG,QAAQ,MAAM;AAC9C,aAAK,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM;AAC3B,aAAK,OAAO,OAAO,YAAY,GAAG,QAAQ,MAAM;AAAA,MACjD;AAAA,IACD;AAAA,IACA,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,KAAK;AAAA,IACL,UAAU;AAAA,IACV,WAAW;AAAA,IACX,UAAU;AAAA,IACV,WAAW;AAAA,IACX,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,OAAO,EAAC,UAAU,GAAG,QAAQ,EAAC;AAAA,IAC9B,WAAW,QAAQ,QAAQ;AAC1B,WAAK,MAAM,WAAW,eAAe;AACrC,YAAM,UAAqB,CAAC;AAC5B,UAAI,cAAc;AAClB,iBAAW,WAAW,KAAK,aAAa,GAAGLine truncated
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/pokedex.ts"],
"sourcesContent": ["export const Pokedex: {[speciesid: string]: ModdedSpeciesData} = {\r\n\tmoltresgalar: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Berserk\", H: \"Regenerator\"},\r\n\t},\r\n\tzapdosgalar: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Defiant\", H: \"Intimidate\"},\r\n\t},\r\n\tarticunogalar: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Competitive\", H: \"Magic Bounce\"},\r\n\t},\r\n\tmagmortar: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Fire\", \"Fighting\"],\r\n\t\tabilities: {0: \"Flame Body\", 1: \"Magma Armor\", H: \"Neutralizing Gas\"},\r\n\t},\r\n\tmagmar: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Flame Body\", 1: \"Magma Armor\", H: \"Vital Spirit\"},\r\n\t},\r\n\tmagby: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Flame Body\", 1: \"Magma Armor\", H: \"Vital Spirit\"},\r\n\t},\r\n\tsandslashalola: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Ice Body\", 1: \"Prickly Coat\", H: \"Slush Rush\"},\r\n\t},\r\n\tninetalesalola: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Snow Cloak\", 1: \"Ice Body\", H: \"Snow Warning\"},\r\n\t},\r\n\tvolbeat: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Light Power\", 1: \"Swarm\", H: \"Prankster\"},\r\n\t},\r\n\tsolrock: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", H: \"Light Power\"},\r\n\t},\r\n\tpachirisu: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Light Power\", 1: \"Pickup\", H: \"Volt Absorb\"},\r\n\t},\r\n\tlumineon: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Swift Swim\", 1: \"Storm Drain\", H: \"Light Power\"},\r\n\t},\r\n\tfroslass: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Soul Link\", 1: \"Ice Body\", H: \"Merciless\"},\r\n\t},\r\n\twatchog: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Light Power\", 1: \"Keen Eye\", H: \"Analytic\"},\r\n\t},\r\n\tsimipour: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Gorilla Tactics\", 1: \"Rain Dish\", H: \"Torrent\"},\r\n\t},\r\n\tsimisear: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Gorilla Tactics\", 1: \"Optimistic\", H: \"Blaze\"},\r\n\t},\r\n\tsimisage: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Gorilla Tactics\", 1: \"Rivalry\", H: \"Overgrow\"},\r\n\t},\r\n\tgigalith: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Sturdy\", 1: \"Sand Stream\", H: \"Light Power\"},\r\n\t},\r\n\tjellicent: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Hydration\", 1: \"Sticky Hold\", H: \"Merciless\"},\r\n\t},\r\n\tcryogonal: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Vapor Control\", H: \"Ice Body\"},\r\n\t},\r\n\tgourgeist: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Soul Link\", 1: \"Frisk\", H: \"Light Power\"},\r\n\t},\r\n\tgourgeistsmall: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Soul Link\", 1: \"Frisk\", H: \"Light Power\"},\r\n\t},\r\n\tgourgeistlarge: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Soul Link\", 1: \"Frisk\", H: \"Light Power\"},\r\n\t},\r\n\tgourgeistsuper: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Soul Link\", 1: \"Frisk\", H: \"Light Power\"},\r\n\t},\r\n\tcrabominable: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Hyper Cutter\", 1: \"Iron Fist\", H: \"Ice Body\"},\r\n\t},\r\n\tgrapploct: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Limber\", 1: \"Rain Dish\", H: \"Technician\"},\r\n\t},\r\n\tpolteageist: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Weak Armor\", 1: \"Rain Dish\", H: \"Counterfeit\"},\r\n\t},\r\n\tpolteageistantique: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Weak Armor\", 1: \"Rain Dish\", H: \"Unimpressed\"},\r\n\t},\r\n\tglastrier: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Chilling Neigh\", H: \"Ice Body\"},\r\n\t},\r\n\tspectrier: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Grim Neigh\", H: \"Wandering Spirit\"},\r\n\t},\r\n\trotom: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Wandering Spirit\", H: \"Unburden\"},\r\n\t},\r\n\trotomheat: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Counterfeit\", H: \"Flame Body\"},\r\n\t},\r\n\trotomwash: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Counterfeit\", H: \"Water Absorb\"},\r\n\t},\r\n\trotomfrost: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Counterfeit\", H: \"Refrigerate\"},\r\n\t},\r\n\trotomfan: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Counterfeit\", H: \"Speed Boost\"},\r\n\t},\r\n\trotommow: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Levitate\", 1: \"Counterfeit\", H: \"Grassy Surge\"},\r\n\t},\r\n\tampharos: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Static\", 1: \"Plus\", H: \"Mold Breaker\"},\r\n\t},\r\n\tampharosmega: {\r\n\t\tinherit: true,\r\n\t\tabilities: {0: \"Fluffy\"},\r\n\t},\r\n\tmeganium: {\r\n\t\tinherit: true,\r\n\t\ttypes: [\"Grass\", \"Fairy\"],\r\n\t\tabilities: {0: \"Overgrow\", H: \"Flower Veil\"},\r\n\t},\r\n\tgarbodor: {\r\n\t\tinherit: true,\r\n\t\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AW,EAAC,GAAG,YAAY,GAAG,cAAa;AAAA,EAC5C;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,WAAW,EAAC,GAAG,aAAa,GAAG,aAAa,GAAG,6BAA4B;AAAA,EAC5E;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,GAAG,cAAc,GAAG,eAAe,GAAG,8BAA6B;AAAA,EAChF;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,WAAW,EAAC,GAAG,cAAc,GAAG,eAAe,GAAG,aAAY;AAAA,EAC/D;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,WAAW,EAAC,GAAG,cAAc,GAAG,aAAa,GAAG,cAAa;AAAA,EAC9D;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,GAAG,aAAa,GAAG,cAAa;AAAA,EAC7C;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,OAAO,CAAC,WAAW,OAAO;AAAA,IAC1B,WAAW,EAAC,GAAG,YAAY,GAAG,SAAS,GAAG,YAAW;AAAA,EACtD;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,OAAO,CAAC,WAAW,UAAU;AAAA,IAC7B,WAAW,EAAC,GAAG,YAAY,GAAG,eAAe,GAAG,QAAO;AAAA,EACxD;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,WAAW,EAAC,GAAG,YAAY,GAAG,QAAO;AAAA,EACtCLine truncated
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,284 @@
"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 random_teams_exports = {};
__export(random_teams_exports, {
RandomJoltemonsTeams: () => RandomJoltemonsTeams,
default: () => random_teams_default
});
module.exports = __toCommonJS(random_teams_exports);
var import_random_teams = require("../gen8/random-teams");
class RandomJoltemonsTeams extends import_random_teams.RandomGen8Teams {
constructor() {
super(...arguments);
this.randomData = require("./random-data.json");
}
shouldCullAbility(ability, types, moves, abilities, counter, movePool, teamDetails, species, isDoubles, isNoDynamax) {
if ([
"Immunity",
"Innards Out",
"Insomnia",
"Misty Surge",
"Quick Feet",
"Snow Cloak",
"Steadfast",
"Steam Engine"
].includes(ability))
return true;
switch (ability) {
case "Contrary":
case "Serene Grace":
case "Skill Link":
case "Strong Jaw":
return !counter.get(this.dex.toID(ability));
case "Analytic":
return moves.has("rapidspin") || species.nfe || isDoubles;
case "Blaze":
return isDoubles && abilities.has("Solar Power") || !isDoubles && !isNoDynamax && species.id === "charizard";
case "Buzz Off":
return !counter.has("Bug");
case "Chlorophyll":
return species.baseStats.spe > 100 || !counter.get("Fire") && !moves.has("sunnyday") && !teamDetails.sun;
case "Cloud Nine":
return !isNoDynamax || species.id !== "golduck";
case "Competitive":
return counter.get("Special") < 2 || moves.has("rest") && moves.has("sleeptalk");
case "Compound Eyes":
case "No Guard":
return !counter.get("inaccurate");
case "Cursed Body":
return abilities.has("Infiltrator");
case "Defiant":
return !counter.get("Physical");
case "Download":
return counter.damagingMoves.size < 3 || moves.has("trick");
case "Early Bird":
return types.has("Grass") && isDoubles;
case "Flash Fire":
return this.dex.getEffectiveness("Fire", species) < -1 || abilities.has("Drought");
case "Frisk":
return abilities.has("Light Power") && counter.get("Physical") < 2 || abilities.has("Optimistic");
case "Gluttony":
return !moves.has("bellydrum");
case "Guts":
return !moves.has("facade") && !moves.has("sleeptalk") && !species.nfe;
case "Harvest":
case "Pastel Veil":
return abilities.has("Frisk") && !isDoubles || abilities.has("Optimistic");
case "Hustle":
case "Inner Focus":
return counter.get("Physical") < 2 || abilities.has("Iron Fist");
case "Infiltrator":
return moves.has("rest") && moves.has("sleeptalk") || isDoubles && abilities.has("Clear Body");
case "Intimidate":
if (species.id === "salamence" && moves.has("dragondance"))
return true;
return ["bodyslam", "bounce", "tripleaxel"].some((m) => moves.has(m));
case "Iron Fist":
return counter.get("ironfist") < 2 || moves.has("dynamicpunch");
case "Justified":
return isDoubles && abilities.has("Inner Focus");
case "Light Power":
return abilities.has("Beast Boost") || counter.get("Physical") > 2;
case "Lightning Rod":
return species.types.includes("Ground") || !isNoDynamax && counter.setupType === "Physical";
case "Limber":
return species.types.includes("Electric") || moves.has("facade");
case "Liquid Voice":
return !moves.has("hypervoice");
case "Magic Guard":
return abilities.has("Tinted Lens") && !counter.get("Status") && !isDoubles;
case "Mold Breaker":
return abilities.has("Adaptability") || abilities.has("Scrappy") || abilities.has("Unburden") && !!counter.setupType || abilities.has("Sheer Force") && !!counter.get("sheerforce");
case "Moxie":
return counter.get("Physical") < 2 || moves.has("stealthrock") || moves.has("defog");
case "Overgrow":
return !counter.get("Grass");
case "Own Tempo":
return !moves.has("petaldance") || abilities.has("Swift Swim");
case "Power Construct":
return species.forme === "10%" && !isDoubles;
case "Prankster":
return !counter.get("Status");
case "Pressure":
return !!counter.setupType || counter.get("Status") < 2 || isDoubles;
case "Refrigerate":
return !counter.get("Normal");
case "Regenerator":
return abilities.has("Magic Guard");
case "Reckless":
return !counter.get("recoil") || moves.has("curse");
case "Rock Head":
return !counter.get("recoil");
case "Sand Force":
case "Sand Veil":
return !teamDetails.sand;
case "Sand Rush":
return !teamDetails.sand && (isNoDynamax || !counter.setupType || !counter.get("Rock") || moves.has("rapidspin"));
case "Sap Sipper":
return moves.has("roost");
case "Scrappy":
return moves.has("earthquake") && species.id === "miltank";
case "Screen Cleaner":
return !!teamDetails.screens;
case "Shed Skin":
return moves.has("dragondance");
case "Sheer Force":
return !counter.get("sheerforce") || abilities.has("Guts") || species.id === "druddigon" && !isDoubles;
case "Shell Armor":
return counter.setupType && abilities.has("Optimistic") || species.id === "omastar" && (moves.has("spikes") || moves.has("stealthrock"));
case "Slush Rush":
return !teamDetails.hail && !abilities.has("Swift Swim");
case "Sniper":
return species.name === "Inteleon" || counter.get("Water") > 1 && !moves.has("focusenergy");
case "Solar Power":
return isNoDynamax && !teamDetails.sun;
case "Soul Link":
return abilities.has("Light Power") && counter.get("Physical") < 2;
case "Speed Boost":
return isNoDynamax && species.id === "ninjask";
case "Steely Spirit":
return moves.has("fakeout") && !isDoubles;
case "Sturdy":
return moves.has("bulkup") || !!counter.get("recoil") || !isNoDynamax && abilities.has("Solid Rock");
case "Swarm":
return !counter.get("Bug") || !!counter.get("recovery");
case "Sweet Veil":
return types.has("Grass");
case "Swift Swim":
if (isNoDynamax) {
const neverWantsSwim = !moves.has("raindance") && [
"Intimidate",
"Rock Head",
"Water Absorb"
].some((m) => abilities.has(m));
const noSwimIfNoRain = !moves.has("raindance") && [
"Cloud Nine",
"Lightning Rod",
"Intimidate",
"Rock Head",
"Sturdy",
"Water Absorb",
"Weak Armor"
].some((m) => abilities.has(m));
return teamDetails.rain ? neverWantsSwim : noSwimIfNoRain;
}
return !moves.has("raindance") && (["Intimidate", "Rock Head", "Slush Rush", "Water Absorb"].some((abil) => abilities.has(abil)) || abilities.has("Lightning Rod") && !counter.setupType);
case "Synchronize":
return counter.get("Status") < 3;
case "Technician":
return !counter.get("technician") || moves.has("tailslap") || abilities.has("Punk Rock") || // For Doubles Alolan Persian
movePool.includes("snarl");
case "Tinted Lens":
return (
// For Sigilyph
moves.has("defog") || moves.has("hurricane") && abilities.has("Compound Eyes") || counter.get("Status") > 2 && !counter.setupType
);
case "Torrent":
return moves.has("focusenergy") || moves.has("hypervoice");
case "Tough Claws":
return types.has("Steel") && !moves.has("fakeout");
case "Unaware":
return !!counter.setupType || moves.has("fireblast");
case "Unburden":
return abilities.has("Prankster") || !counter.setupType && !isDoubles;
case "Vapor Control":
return !teamDetails.sun;
case "Volt Absorb":
return this.dex.getEffectiveness("Electric", species) < -1;
case "Water Absorb":
return moves.has("raindance") || ["Drizzle", "Strong Jaw", "Unaware", "Volt Absorb"].some((abil) => abilities.has(abil));
case "Weak Armor":
return !isNoDynamax && species.baseStats.spe > 50 || species.id === "skarmory" || moves.has("shellsmash") || moves.has("rapidspin");
}
return false;
}
getHighPriorityItem(ability, types, moves, counter, teamDetails, species, isLead, isDoubles) {
if (ability === "Honey Gather")
return "Red Card";
if (ability === "Scavenge")
return "Soul Blade";
if (ability === "Sweet Veil")
return "Honey";
if (["stakataka", "buzzwole", "donphan"].includes(species.id))
return "Momentum Armor";
if (["scyther", "sneasel", "magneton"].includes(species.id))
return "Eviolith";
if (species.id === "appletun")
return "Sweet Apple";
if (species.id.startsWith("darmanitan") && counter.get("Special") > 2)
return "Chill Pill";
if (species.id === "castform" && (moves.has("raindance") || moves.has("sunnyday")))
return "Cursed Belt";
if (species.id === "cherrim")
return "Morning Blossom";
if (species.id === "flapple")
return "Tart Apple";
if (species.id === "meloetta" && counter.get("Physical") > 2)
return "Relic Charm";
if (species.id === "mimikyu")
return "Nightlight Ball";
if (species.id === "phione")
return "Seawater Bead";
if (species.id === "regigigas")
return "Sacred Ropes";
if (species.id === "swoobat")
return "Coal Engine";
if (species.id === "wishiwashi")
return "Graduation Scale";
if ([
"pikachu",
"raichu",
"raichualola",
"plusle",
"minun",
"pachirisu",
"emolga",
"dedenne",
"togedemaru",
"morpeko"
].includes(species.id))
return "Light Ball";
return super.getHighPriorityItem(ability, types, moves, counter, teamDetails, species, isLead, isDoubles);
}
getMediumPriorityItem(ability, moves, counter, species, isLead, isDoubles, isNoDynamax) {
const item = super.getMediumPriorityItem(ability, moves, counter, species, isLead, isDoubles, isNoDynamax);
if (counter.setupType === "Physical" && counter.get("Status") < 2 && !item)
return "Cursed Belt";
return item;
}
getLowPriorityItem(ability, types, moves, abilities, counter, teamDetails, species, isLead, isDoubles, isNoDynamax) {
const item = super.getLowPriorityItem(
ability,
types,
moves,
abilities,
counter,
teamDetails,
species,
isLead,
isDoubles,
isNoDynamax
);
if (item === "Leftovers" && types.has("Ghost"))
return "Reaper Cloth";
return item;
}
}
var random_teams_default = RandomJoltemonsTeams;
//# sourceMappingURL=random-teams.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/random-teams.ts"],
"sourcesContent": ["import {Species} from '../../../sim/dex-species';\r\nimport {MoveCounter, RandomGen8Teams, OldRandomBattleSpecies} from '../gen8/random-teams';\r\n\r\nexport class RandomJoltemonsTeams extends RandomGen8Teams {\r\n\trandomData: {[species: string]: OldRandomBattleSpecies} = require('./random-data.json');\r\n\r\n\tshouldCullAbility(\r\n\t\tability: string,\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\tisDoubles: boolean,\r\n\t\tisNoDynamax: boolean\r\n\t): boolean {\r\n\t\tif ([\r\n\t\t\t'Immunity', 'Innards Out', 'Insomnia', 'Misty Surge',\r\n\t\t\t'Quick Feet', 'Snow Cloak', 'Steadfast', 'Steam Engine',\r\n\t\t].includes(ability)) return true;\r\n\r\n\t\tswitch (ability) {\r\n\t\t// Abilities which are primarily useful for certain moves\r\n\t\tcase 'Contrary': case 'Serene Grace': case 'Skill Link': case 'Strong Jaw':\r\n\t\t\treturn !counter.get(this.dex.toID(ability));\r\n\t\tcase 'Analytic':\r\n\t\t\treturn (moves.has('rapidspin') || species.nfe || isDoubles);\r\n\t\tcase 'Blaze':\r\n\t\t\treturn (isDoubles && abilities.has('Solar Power')) || (!isDoubles && !isNoDynamax && species.id === 'charizard');\r\n\t\tcase 'Buzz Off':\r\n\t\t\treturn !counter.has('Bug');\r\n\t\tcase 'Chlorophyll':\r\n\t\t\treturn (species.baseStats.spe > 100 || !counter.get('Fire') && !moves.has('sunnyday') && !teamDetails.sun);\r\n\t\tcase 'Cloud Nine':\r\n\t\t\treturn (!isNoDynamax || species.id !== 'golduck');\r\n\t\tcase 'Competitive':\r\n\t\t\treturn (counter.get('Special') < 2 || (moves.has('rest') && moves.has('sleeptalk')));\r\n\t\tcase 'Compound Eyes': case 'No Guard':\r\n\t\t\treturn !counter.get('inaccurate');\r\n\t\tcase 'Cursed Body':\r\n\t\t\treturn abilities.has('Infiltrator');\r\n\t\tcase 'Defiant':\r\n\t\t\treturn !counter.get('Physical');\r\n\t\tcase 'Download':\r\n\t\t\treturn (counter.damagingMoves.size < 3 || moves.has('trick'));\r\n\t\tcase 'Early Bird':\r\n\t\t\treturn (types.has('Grass') && isDoubles);\r\n\t\tcase 'Flash Fire':\r\n\t\t\treturn (this.dex.getEffectiveness('Fire', species) < -1 || abilities.has('Drought'));\r\n\t\tcase 'Frisk':\r\n\t\t\treturn abilities.has('Light Power') && counter.get('Physical') < 2 || abilities.has('Optimistic');\r\n\t\tcase 'Gluttony':\r\n\t\t\treturn !moves.has('bellydrum');\r\n\t\tcase 'Guts':\r\n\t\t\treturn (!moves.has('facade') && !moves.has('sleeptalk') && !species.nfe);\r\n\t\tcase 'Harvest': case 'Pastel Veil':\r\n\t\t\treturn (abilities.has('Frisk') && !isDoubles) || abilities.has('Optimistic');\r\n\t\tcase 'Hustle': case 'Inner Focus':\r\n\t\t\treturn (counter.get('Physical') < 2 || abilities.has('Iron Fist'));\r\n\t\tcase 'Infiltrator':\r\n\t\t\treturn (moves.has('rest') && moves.has('sleeptalk')) || (isDoubles && abilities.has('Clear Body'));\r\n\t\tcase 'Intimidate':\r\n\t\t\tif (species.id === 'salamence' && moves.has('dragondance')) return true;\r\n\t\t\treturn ['bodyslam', 'bounce', 'tripleaxel'].some(m => moves.has(m));\r\n\t\tcase 'Iron Fist':\r\n\t\t\treturn (counter.get('ironfist') < 2 || moves.has('dynamicpunch'));\r\n\t\tcase 'Justified':\r\n\t\t\treturn (isDoubles && abilities.has('Inner Focus'));\r\n\t\tcase 'Light Power':\r\n\t\t\treturn abilities.has('Beast Boost') || counter.get('Physical') > 2;\r\n\t\tcase 'Lightning Rod':\r\n\t\t\treturn (species.types.includes('Ground') || (!isNoDynamax && counter.setupType === 'Physical'));\r\n\t\tcase 'Limber':\r\n\t\t\treturn species.types.includes('Electric') || moves.has('facade');\r\n\t\tcase 'Liquid Voice':\r\n\t\t\treturn !moves.has('hypervoice');\r\n\t\tcase 'Magic Guard':\r\n\t\t\t// For Sigilyph\r\n\t\t\treturn (abilities.has('Tinted Lens') && !counter.get('Status') && !isDoubles);\r\n\t\tcase 'Mold Breaker':\r\n\t\t\treturn (\r\n\t\t\t\tabilities.has('Adaptability') || abilities.has('Scrappy') || (abilities.has('Unburden') && !!counter.setupType) ||\r\n\t\t\t\t(abilities.has('Sheer Force') && !!counter.get('sheerforce'))\r\n\t\t\t);\r\n\t\tcase 'Moxie':\r\n\t\t\treturn (counter.get('Physical') < 2 || moves.has('stealthrock') || moves.has('defog'));\r\n\t\tcase 'Overgrow':\r\n\t\t\treturn !counter.get('Grass');\r\n\t\tcase 'Own Tempo':\r\n\t\t\treturn !moves.has('petaldance') || abilities.has('Swift Swim');\r\n\t\tcase 'Power Construct':\r\n\t\t\treturn (species.forme === '10%' && !isDoubles);\r\n\t\tcase 'Prankster':\r\n\t\t\treturn !counter.get('Status');\r\n\t\tcase 'Pressure':\r\n\t\t\treturn (!!counter.setupType || counter.get('Status') < 2 || isDoubles);\r\n\t\tcase 'Refrigerate':\r\n\t\t\treturn !counter.get('Normal');\r\n\t\tcase 'Regenerator':\r\n\t\t\t// For Reuniclus\r\n\t\t\treturn abilities.has('Magic Guard');\r\n\t\tcase 'Reckless':\r\n\t\t\treturn !counter.get('recoil') || moves.has('curse');\r\n\t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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 = {
megadatamod: {
effectType: "Rule",
name: "Mega Data Mod",
desc: "Gives data on stats, Ability and types when a Pok\xE9mon Mega Evolves or undergoes Ultra Burst.",
onSwitchIn(pokemon) {
if (pokemon.illusion) {
if (pokemon.illusion.species.forme.startsWith("Mega") || pokemon.illusion.species.forme.startsWith("Ultra")) {
this.add("-start", pokemon, "typechange", pokemon.illusion.getTypes(true).join("/"), "[silent]");
}
} else {
if (pokemon.species.forme.startsWith("Mega") || pokemon.species.forme.startsWith("Ultra")) {
this.add("-start", pokemon, "typechange", pokemon.getTypes(true).join("/"), "[silent]");
}
}
},
onDamagingHit(damage, target, source, move) {
if (target.hasAbility("illusion")) {
if (target.species.forme.startsWith("Mega") || target.species.forme.startsWith("Ultra")) {
this.add("-start", target, "typechange", target.getTypes(true).join("/"), "[silent]");
} else {
const types = target.baseSpecies.types;
if (target.getTypes().join() === types.join()) {
this.add("-end", target, "typechange", "[silent]");
}
}
}
},
onAfterMega(pokemon) {
this.add("-start", pokemon, "typechange", pokemon.getTypes(true).join("/"), "[silent]");
const species = this.dex.species.get(pokemon.species.name);
const abilities = species.abilities;
const baseStats = species.baseStats;
const type = species.types[0];
if (species.types[1]) {
const type2 = species.types[1];
this.add(`raw|<ul class="utilichart"><li class="result"><span class="col pokemonnamecol" style="white-space: nowrap">` + species.name + `</span> <span class="col typecol"><img src="https://${Config.routes.client}/sprites/types/${type}.png" alt="${type}" height="14" width="32"><img src="https://${Config.routes.client}/sprites/types/${type2}.png" alt="${type2}" height="14" width="32"></span> <span style="float: left ; min-height: 26px"><span class="col abilitycol">` + abilities[0] + `</span><span class="col abilitycol"></span></span><span style="float: left ; min-height: 26px"><span class="col statcol"><em>HP</em><br>` + baseStats.hp + `</span> <span class="col statcol"><em>Atk</em><br>` + baseStats.atk + `</span> <span class="col statcol"><em>Def</em><br>` + baseStats.def + `</span> <span class="col statcol"><em>SpA</em><br>` + baseStats.spa + `</span> <span class="col statcol"><em>SpD</em><br>` + baseStats.spd + `</span> <span class="col statcol"><em>Spe</em><br>` + baseStats.spe + `</span> </span></li><li style="clear: both"></li></ul>`);
} else {
this.add(`raw|<ul class="utilichart"><li class="result"><span class="col pokemonnamecol" style="white-space: nowrap">` + species.name + `</span> <span class="col typecol"><img src="https://${Config.routes.client}/sprites/types/${type}.png" alt="${type}" height="14" width="32"></span> <span style="float: left ; min-height: 26px"><span class="col abilitycol">` + abilities[0] + `</span><span class="col abilitycol"></span></span><span style="float: left ; min-height: 26px"><span class="col statcol"><em>HP</em><br>` + baseStats.hp + `</span> <span class="col statcol"><em>Atk</em><br>` + baseStats.atk + `</span> <span class="col statcol"><em>Def</em><br>` + baseStats.def + `</span> <span class="col statcol"><em>SpA</em><br>` + baseStats.spa + `</span> <span class="col statcol"><em>SpD</em><br>` + baseStats.spd + `</span> <span class="col statcol"><em>Spe</em><br>` + baseStats.spe + `</span> </span></li><li style="clear: both"></li></ul>`);
}
}
}
};
//# sourceMappingURL=rulesets.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/rulesets.ts"],
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tmegadatamod: {\r\n\t\teffectType: 'Rule',\r\n\t\tname: 'Mega Data Mod',\r\n\t\tdesc: 'Gives data on stats, Ability and types when a Pok\u00E9mon Mega Evolves or undergoes Ultra Burst.',\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\tif (pokemon.illusion) {\r\n\t\t\t\tif (pokemon.illusion.species.forme.startsWith('Mega') || pokemon.illusion.species.forme.startsWith('Ultra')) {\r\n\t\t\t\t\tthis.add('-start', pokemon, 'typechange', pokemon.illusion.getTypes(true).join('/'), '[silent]');\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (pokemon.species.forme.startsWith('Mega') || pokemon.species.forme.startsWith('Ultra')) {\r\n\t\t\t\t\tthis.add('-start', pokemon, 'typechange', pokemon.getTypes(true).join('/'), '[silent]');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (target.hasAbility('illusion')) {\r\n\t\t\t\tif (target.species.forme.startsWith('Mega') || target.species.forme.startsWith('Ultra')) {\r\n\t\t\t\t\tthis.add('-start', target, 'typechange', target.getTypes(true).join('/'), '[silent]');\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst types = target.baseSpecies.types;\r\n\t\t\t\t\tif (target.getTypes().join() === types.join()) {\r\n\t\t\t\t\t\tthis.add('-end', target, 'typechange', '[silent]');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterMega(pokemon) {\r\n\t\t\tthis.add('-start', pokemon, 'typechange', pokemon.getTypes(true).join('/'), '[silent]');\r\n\t\t\tconst species = this.dex.species.get(pokemon.species.name);\r\n\t\t\tconst abilities = species.abilities;\r\n\t\t\tconst baseStats = species.baseStats;\r\n\t\t\tconst type = species.types[0];\r\n\t\t\tif (species.types[1]) {\r\n\t\t\t\tconst type2 = species.types[1];\r\n\t\t\t\tthis.add(`raw|<ul class=\"utilichart\"><li class=\"result\"><span class=\"col pokemonnamecol\" style=\"white-space: nowrap\">` + species.name + `</span> <span class=\"col typecol\"><img src=\"https://${Config.routes.client}/sprites/types/${type}.png\" alt=\"${type}\" height=\"14\" width=\"32\"><img src=\"https://${Config.routes.client}/sprites/types/${type2}.png\" alt=\"${type2}\" height=\"14\" width=\"32\"></span> <span style=\"float: left ; min-height: 26px\"><span class=\"col abilitycol\">` + abilities[0] + `</span><span class=\"col abilitycol\"></span></span><span style=\"float: left ; min-height: 26px\"><span class=\"col statcol\"><em>HP</em><br>` + baseStats.hp + `</span> <span class=\"col statcol\"><em>Atk</em><br>` + baseStats.atk + `</span> <span class=\"col statcol\"><em>Def</em><br>` + baseStats.def + `</span> <span class=\"col statcol\"><em>SpA</em><br>` + baseStats.spa + `</span> <span class=\"col statcol\"><em>SpD</em><br>` + baseStats.spd + `</span> <span class=\"col statcol\"><em>Spe</em><br>` + baseStats.spe + `</span> </span></li><li style=\"clear: both\"></li></ul>`);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add(`raw|<ul class=\"utilichart\"><li class=\"result\"><span class=\"col pokemonnamecol\" style=\"white-space: nowrap\">` + species.name + `</span> <span class=\"col typecol\"><img src=\"https://${Config.routes.client}/sprites/types/${type}.png\" alt=\"${type}\" height=\"14\" width=\"32\"></span> <span style=\"float: left ; min-height: 26px\"><span class=\"col abilitycol\">` + abilities[0] + `</span><span class=\"col abilitycol\"></span></span><span style=\"float: left ; min-height: 26px\"><span class=\"col statcol\"><em>HP</em><br>` + baseStats.hp + `</span> <span class=\"col statcol\"><em>Atk</em><br>` + baseStats.atk + `</span> <span class=\"col statcol\"><em>Def</em><br>` + baseStats.def + `</span> <span class=\"col statcol\"><em>SpA</em><br>` + baseStats.spa + `</span> <span class=\"col statcol\"><em>SpD</em><br>` + baseStats.spd + `</span> <span class=\"col statcol\"><em>Spe</em><br>` + baseStats.spe + `</span> </span></li><li style=\"clear: both\"></li></ul>`);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA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,YAAY,QAAQ;AAC1B,YAAM,YAAY,QAAQ;AAC1B,YAAM,OAAO,QAAQ,MAAM,CAAC;AAC5B,UAAI,QAAQ,MAAM,CAAC,GAAG;AACrB,cAAM,QAAQ,QAAQ,MAAM,CAAC;AAC7B,aAAK,IAAI,gHAAgH,QAAQ,OAAO,uDAAuD,OAAO,OAAO,wBAAwB,kBAAkB,kDAAkD,OAAO,OAAO,wBAAwB,mBAAmB,qHAAqH,UAAU,CAAC,IAAI,6IAA6I,UAAU,KAAK,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,wDAAwD;AAAA,MAC9hC,OAAO;AACN,aAAK,IAAI,gHAAgH,QAAQ,OAAO,uDAAuD,OAAO,OAAO,wBAAwB,kBAAkB,oHAAoH,UAAU,CAAC,IAAI,6IAA6I,UAAU,KAAK,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,uDAAuD,UAAU,MAAM,wDAAwD;AAAA,MACl7B;AAAA,IACD;AAAA,EACD;AACD;",
"names": []
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/gen8joltemons/scripts.ts"],
"sourcesContent": ["import {RESTORATIVE_BERRIES} from \"../../../sim/pokemon\";\r\n\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen8',\r\n\tgen: 8,\r\n\tactions: {\r\n\t\tcanMegaEvo(pokemon) {\r\n\t\t\tconst altForme = pokemon.baseSpecies.otherFormes && this.dex.species.get(pokemon.baseSpecies.otherFormes[0]);\r\n\t\t\tconst item = pokemon.getItem();\r\n\t\t\tif (\r\n\t\t\t\taltForme?.isMega && altForme?.requiredMove &&\r\n\t\t\t\tpokemon.baseMoves.includes(this.dex.toID(altForme.requiredMove)) && !item.zMove\r\n\t\t\t) {\r\n\t\t\t\treturn altForme.name;\r\n\t\t\t}\r\n\t\t\tif (item.name === \"Slowbronite\" && pokemon.baseSpecies.name === \"Slowbro-Galar\") {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\treturn item.megaStone;\r\n\t\t},\r\n\t\tmodifyDamage(baseDamage, pokemon, target, move, suppressMessages) {\r\n\t\t\tconst tr = this.battle.trunc;\r\n\t\t\tif (!move.type) move.type = '???';\r\n\t\t\tconst type = move.type;\r\n\r\n\t\t\tbaseDamage += 2;\r\n\r\n\t\t\t// multi-target modifier (doubles only)\r\n\t\t\tif (move.spreadHit) {\r\n\t\t\t\t// multi-target modifier (doubles only)\r\n\t\t\t\tconst spreadModifier = move.spreadModifier || (this.battle.gameType === 'freeforall' ? 0.5 : 0.75);\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} else if (move.multihitType === 'parentalbond' && move.hit > 1) {\r\n\t\t\t\t// Parental Bond modifier\r\n\t\t\t\tconst bondModifier = this.battle.gen > 6 ? 0.25 : 0.5;\r\n\t\t\t\tthis.battle.debug(`Parental Bond modifier: ${bondModifier}`);\r\n\t\t\t\tbaseDamage = this.battle.modify(baseDamage, bondModifier);\r\n\t\t\t}\r\n\r\n\t\t\t// weather modifier\r\n\t\t\tbaseDamage = this.battle.runEvent('WeatherModifyDamage', pokemon, target, move, baseDamage);\r\n\r\n\t\t\t// crit - not a modifier\r\n\t\t\tconst isCrit = target.getMoveHitData(move).crit;\r\n\t\t\tif (isCrit) {\r\n\t\t\t\tbaseDamage = tr(baseDamage * (move.critModifier || (this.battle.gen >= 6 ? 1.5 : 2)));\r\n\t\t\t}\r\n\r\n\t\t\t// random factor - also not a modifier\r\n\t\t\tbaseDamage = this.battle.randomizer(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 = tr(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\tif (pokemon.status === 'brn' && move.category === 'Physical' && !pokemon.hasAbility('guts')) {\r\n\t\t\t\tif (this.battle.gen < 6 || move.id !== 'facade' || move.id !== 'shadowpunch') {\r\n\t\t\t\t\tbaseDamage = this.battle.modify(baseDamage, 0.5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Generation 5, but nothing later, sets damage to 1 before the final damage modifiers\r\n\t\t\tif (this.battle.gen === 5 && !baseDamage) baseDamage = 1;\r\n\r\n\t\t\t// Final modifier. Modifiers that modify damage after min damage check, such as Life Orb.\r\n\t\t\tbaseDamage = this.battle.runEvent('ModifyDamage', pokemon, target, move, baseDamage);\r\n\r\n\t\t\tif (move.isZOrMaxPowered && target.getMoveHitData(move).zBrokeProtect) {\r\n\t\t\t\tbaseDamage = this.battle.modify(baseDamage, 0.25);\r\n\t\t\t\tthis.battle.add('-zbroken', target);\r\n\t\t\t}\r\n\r\n\t\t\t// Generation 6-7 moves the check for minimum 1 damage after the final modifier...\r\n\t\t\tif (this.battle.gen !== 5 && !baseDamage) return 1;\r\n\r\n\t\t\t// ...but 16-bit truncation happens even later, and can truncate to 0\r\n\t\t\treturn tr(baseDamage, 16);\r\n\t\t},\r\n\t},\r\n\tpokemon: {\r\n\t\tisGrounded(negateImmunity = false) {\r\n\t\t\tif ('gravity' in this.battle.field.pseudoWeather) return true;\r\n\t\t\tif ('ingrain' in this.volatiles && this.battle.gen >= 4) return true;\r\n\t\t\tif ('smackdown' in this.volatiles) return true;\r\n\t\t\tconst item = (this.ignoringItem() ? '' : this.item);\r\n\t\t\tif (item === 'ironball') return true;\r\n\t\t\t// If a Fire/Flying type uses Burn Up and Roost, it becomes ???/Flying-type, but it's still grounded.\r\n\t\t\tif (!negateImmunity && this.hasType('Flying') && Line truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAkC;AAE3B,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AAAA,EACL,SAAS;AAAA,IACR,WAAW,SAAS;AACnB,YAAM,WAAW,QAAQ,YAAY,eAAe,KAAK,IAAI,QAAQ,IAAI,QAAQ,YAAY,YAAY,CAAC,CAAC;AAC3G,YAAM,OAAO,QAAQ,QAAQ;AAC7B,UACC,UAAU,UAAU,UAAU,gBAC9B,QAAQ,UAAU,SAAS,KAAK,IAAI,KAAK,SAAS,YAAY,CAAC,KAAK,CAAC,KAAK,OACzE;AACD,eAAO,SAAS;AAAA,MACjB;AACA,UAAI,KAAK,SAAS,iBAAiB,QAAQ,YAAY,SAAS,iBAAiB;AAChF,eAAO;AAAA,MACR;AACA,aAAO,KAAK;AAAA,IACb;AAAA,IACA,aAAa,YAAY,SAAS,QAAQ,MAAM,kBAAkB;AACjE,YAAM,KAAK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