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

@@ -0,0 +1,294 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var abilities_exports = {};
__export(abilities_exports, {
Abilities: () => Abilities
});
module.exports = __toCommonJS(abilities_exports);
const Abilities = {
mummy: {
inherit: true,
onDamagingHit(damage, target, source, move) {
if (target.ability === "mummy") {
const sourceAbility = source.getAbility();
if (sourceAbility.isPermanent || sourceAbility.id === "mummy") {
return;
}
if (this.checkMoveMakesContact(move, source, target, !source.isAlly(target))) {
const oldAbility = source.setAbility("mummy", target);
if (oldAbility) {
this.add("-activate", target, "ability: Mummy", this.dex.abilities.get(oldAbility).name, "[of] " + source);
}
}
} else {
const possibleAbilities = [source.ability, ...source.m.innates || []].filter((val) => !this.dex.abilities.get(val).isPermanent && val !== "mummy");
if (!possibleAbilities.length)
return;
if (this.checkMoveMakesContact(move, source, target, !source.isAlly(target))) {
const abil = this.sample(possibleAbilities);
if (abil === source.ability) {
const oldAbility = source.setAbility("mummy", target);
if (oldAbility) {
this.add("-activate", target, "ability: Mummy", this.dex.abilities.get(oldAbility).name, "[of] " + source);
}
} else {
source.removeVolatile("ability:" + abil);
source.addVolatile("ability:mummy", source);
if (abil) {
this.add("-activate", target, "ability: Mummy", this.dex.abilities.get(abil).name, "[of] " + source);
}
}
}
}
}
},
neutralizinggas: {
inherit: true,
// Ability suppression implemented in sim/pokemon.ts:Pokemon#ignoringAbility
onPreStart(pokemon) {
this.add("-ability", pokemon, "Neutralizing Gas");
pokemon.abilityState.ending = false;
if (pokemon.m.innates) {
for (const innate of pokemon.m.innates) {
if (this.dex.abilities.get(innate).isPermanent || innate === "neutralizinggas")
continue;
pokemon.removeVolatile("ability:" + innate);
}
}
for (const target of this.getAllActive()) {
if (target.illusion) {
this.singleEvent("End", this.dex.abilities.get("Illusion"), target.abilityState, target, pokemon, "neutralizinggas");
}
if (target.volatiles["slowstart"]) {
delete target.volatiles["slowstart"];
this.add("-end", target, "Slow Start", "[silent]");
}
if (target.m.innates) {
for (const innate of target.m.innates) {
if (this.dex.abilities.get(innate).isPermanent)
continue;
target.removeVolatile("ability:" + innate);
}
}
}
},
onEnd(source) {
this.add("-end", source, "ability: Neutralizing Gas");
if (source.abilityState.ending)
return;
source.abilityState.ending = true;
const sortedActive = this.getAllActive();
this.speedSort(sortedActive);
for (const pokemon of sortedActive) {
if (pokemon !== source) {
this.singleEvent("Start", pokemon.getAbility(), pokemon.abilityState, pokemon);
if (pokemon.m.innates) {
for (const innate of pokemon.m.innates) {
if (pokemon.volatiles["ability:" + innate])
continue;
pokemon.addVolatile("ability:" + innate, pokemon);
}
}
}
}
}
},
poisontouch: {
inherit: true,
// Activate after Sheer Force to make interaction determistic. The ordering for this ability is
// an arbitary decision, but is modelled on Stench, which is reflective of on-cart behaviour.
onModifyMovePriority: -1
},
powerofalchemy: {
inherit: true,
onAllyFaint(ally) {
const pokemon = this.effectState.target;
if (!pokemon.hp)
return;
const isAbility = pokemon.ability === "powerofalchemy";
let possibleAbilities = [ally.ability];
if (ally.m.innates)
possibleAbilities.push(...ally.m.innates);
const additionalBannedAbilities = [
"noability",
"flowergift",
"forecast",
"hungerswitch",
"illusion",
"imposter",
"neutralizinggas",
"powerofalchemy",
"receiver",
"trace",
"wonderguard",
pokemon.ability,
...pokemon.m.innates || []
];
possibleAbilities = possibleAbilities.filter((val) => !this.dex.abilities.get(val).isPermanent && !additionalBannedAbilities.includes(val));
if (!possibleAbilities.length)
return;
const ability = this.dex.abilities.get(possibleAbilities[this.random(possibleAbilities.length)]);
this.add("-ability", pokemon, ability, "[from] ability: Power of Alchemy", "[of] " + ally);
if (isAbility) {
pokemon.setAbility(ability);
} else {
pokemon.removeVolatile("ability:powerofalchemy");
pokemon.addVolatile("ability:" + ability, pokemon);
}
}
},
receiver: {
inherit: true,
onAllyFaint(ally) {
const pokemon = this.effectState.target;
if (!pokemon.hp)
return;
const isAbility = pokemon.ability === "receiver";
let possibleAbilities = [ally.ability];
if (ally.m.innates)
possibleAbilities.push(...ally.m.innates);
const additionalBannedAbilities = [
"noability",
"flowergift",
"forecast",
"hungerswitch",
"illusion",
"imposter",
"neutralizinggas",
"powerofalchemy",
"receiver",
"trace",
"wonderguard",
pokemon.ability,
...pokemon.m.innates || []
];
possibleAbilities = possibleAbilities.filter((val) => !this.dex.abilities.get(val).isPermanent && !additionalBannedAbilities.includes(val));
if (!possibleAbilities.length)
return;
const ability = this.dex.abilities.get(possibleAbilities[this.random(possibleAbilities.length)]);
this.add("-ability", pokemon, ability, "[from] ability: Receiver", "[of] " + ally);
if (isAbility) {
pokemon.setAbility(ability);
} else {
pokemon.removeVolatile("ability:receiver");
pokemon.addVolatile("ability:" + ability, pokemon);
}
}
},
trace: {
inherit: true,
onUpdate(pokemon) {
if (!pokemon.isStarted)
return;
const isAbility = pokemon.ability === "trace";
const possibleTargets = [];
for (const target of pokemon.side.foe.active) {
if (target && !target.fainted) {
possibleTargets.push(target);
}
}
while (possibleTargets.length) {
const rand = this.random(possibleTargets.length);
const target = possibleTargets[rand];
let possibleAbilities = [target.ability];
if (target.m.innates)
possibleAbilities.push(...target.m.innates);
const additionalBannedAbilities = [
// Zen Mode included here for compatability with Gen 5-6
"noability",
"flowergift",
"forecast",
"hungerswitch",
"illusion",
"imposter",
"neutralizinggas",
"powerofalchemy",
"receiver",
"trace",
"zenmode",
pokemon.ability,
...pokemon.m.innates || []
];
possibleAbilities = possibleAbilities.filter((val) => !this.dex.abilities.get(val).isPermanent && !additionalBannedAbilities.includes(val));
if (!possibleAbilities.length) {
possibleTargets.splice(rand, 1);
continue;
}
const ability = this.dex.abilities.get(this.sample(possibleAbilities));
this.add("-ability", pokemon, ability, "[from] ability: Trace", "[of] " + target);
if (isAbility) {
pokemon.setAbility(ability);
} else {
pokemon.removeVolatile("ability:trace");
pokemon.addVolatile("ability:" + ability, pokemon);
}
return;
}
}
},
wanderingspirit: {
inherit: true,
onDamagingHit(damage, target, source, move) {
const isAbility = target.ability === "wanderingspirit";
const additionalBannedAbilities = ["hungerswitch", "illusion", "neutralizinggas", "wonderguard"];
if (isAbility) {
if (source.getAbility().isPermanent || additionalBannedAbilities.includes(source.ability) || target.volatiles["dynamax"]) {
return;
}
if (this.checkMoveMakesContact(move, source, target)) {
const sourceAbility = source.setAbility("wanderingspirit", target);
if (!sourceAbility)
return;
if (target.isAlly(source)) {
this.add("-activate", target, "Skill Swap", "", "", "[of] " + source);
} else {
this.add("-activate", target, "ability: Wandering Spirit", this.dex.abilities.get(sourceAbility).name, "Wandering Spirit", "[of] " + source);
}
target.setAbility(sourceAbility);
}
} else {
const possibleAbilities = [source.ability, ...source.m.innates || []].filter((val) => !this.dex.abilities.get(val).isPermanent && !additionalBannedAbilities.includes(val));
if (!possibleAbilities.length || target.volatiles["dynamax"])
return;
if (move.flags["contact"]) {
const sourceAbility = this.sample(possibleAbilities);
if (sourceAbility === source.ability) {
if (!source.setAbility("wanderingspirit", target))
return;
} else {
source.removeVolatile("ability:" + sourceAbility);
source.addVolatile("ability:wanderingspirit", source);
}
if (target.isAlly(source)) {
this.add("-activate", target, "Skill Swap", "", "", "[of] " + source);
} else {
this.add("-activate", target, "ability: Wandering Spirit", this.dex.abilities.get(sourceAbility).name, "Wandering Spirit", "[of] " + source);
}
if (sourceAbility === source.ability) {
target.setAbility(sourceAbility);
} else {
target.removeVolatile("ability:wanderingspirit");
target.addVolatile("ability:" + sourceAbility, target);
}
}
}
}
}
};
//# sourceMappingURL=abilities.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/pokebilities/abilities.ts"],
"sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\tmummy: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (target.ability === 'mummy') {\r\n\t\t\t\tconst sourceAbility = source.getAbility();\r\n\t\t\t\tif (sourceAbility.isPermanent || sourceAbility.id === 'mummy') {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.checkMoveMakesContact(move, source, target, !source.isAlly(target))) {\r\n\t\t\t\t\tconst oldAbility = source.setAbility('mummy', target);\r\n\t\t\t\t\tif (oldAbility) {\r\n\t\t\t\t\t\tthis.add('-activate', target, 'ability: Mummy', this.dex.abilities.get(oldAbility).name, '[of] ' + source);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconst possibleAbilities = [source.ability, ...(source.m.innates || [])]\r\n\t\t\t\t\t.filter(val => !this.dex.abilities.get(val).isPermanent && val !== 'mummy');\r\n\t\t\t\tif (!possibleAbilities.length) return;\r\n\t\t\t\tif (this.checkMoveMakesContact(move, source, target, !source.isAlly(target))) {\r\n\t\t\t\t\tconst abil = this.sample(possibleAbilities);\r\n\t\t\t\t\tif (abil === source.ability) {\r\n\t\t\t\t\t\tconst oldAbility = source.setAbility('mummy', target);\r\n\t\t\t\t\t\tif (oldAbility) {\r\n\t\t\t\t\t\t\tthis.add('-activate', target, 'ability: Mummy', this.dex.abilities.get(oldAbility).name, '[of] ' + source);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsource.removeVolatile('ability:' + abil);\r\n\t\t\t\t\t\tsource.addVolatile('ability:mummy', source);\r\n\t\t\t\t\t\tif (abil) {\r\n\t\t\t\t\t\t\tthis.add('-activate', target, 'ability: Mummy', this.dex.abilities.get(abil).name, '[of] ' + source);\r\n\t\t\t\t\t\t}\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},\r\n\tneutralizinggas: {\r\n\t\tinherit: true,\r\n\t\t// Ability suppression implemented in sim/pokemon.ts:Pokemon#ignoringAbility\r\n\t\tonPreStart(pokemon) {\r\n\t\t\tthis.add('-ability', pokemon, 'Neutralizing Gas');\r\n\t\t\tpokemon.abilityState.ending = false;\r\n\t\t\t// Remove setter's innates before the ability starts\r\n\t\t\tif (pokemon.m.innates) {\r\n\t\t\t\tfor (const innate of pokemon.m.innates) {\r\n\t\t\t\t\tif (this.dex.abilities.get(innate).isPermanent || innate === 'neutralizinggas') continue;\r\n\t\t\t\t\tpokemon.removeVolatile('ability:' + innate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (const target of this.getAllActive()) {\r\n\t\t\t\tif (target.illusion) {\r\n\t\t\t\t\tthis.singleEvent('End', this.dex.abilities.get('Illusion'), target.abilityState, target, pokemon, 'neutralizinggas');\r\n\t\t\t\t}\r\n\t\t\t\tif (target.volatiles['slowstart']) {\r\n\t\t\t\t\tdelete target.volatiles['slowstart'];\r\n\t\t\t\t\tthis.add('-end', target, 'Slow Start', '[silent]');\r\n\t\t\t\t}\r\n\t\t\t\tif (target.m.innates) {\r\n\t\t\t\t\tfor (const innate of target.m.innates) {\r\n\t\t\t\t\t\tif (this.dex.abilities.get(innate).isPermanent) continue;\r\n\t\t\t\t\t\ttarget.removeVolatile('ability:' + innate);\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\tonEnd(source) {\r\n\t\t\tthis.add('-end', source, 'ability: Neutralizing Gas');\r\n\r\n\t\t\t// FIXME this happens before the pokemon switches out, should be the opposite order.\r\n\t\t\t// Not an easy fix since we cant use a supported event. Would need some kind of special event that\r\n\t\t\t// gathers events to run after the switch and then runs them when the ability is no longer accessible.\r\n\t\t\t// (If you're tackling this, do note extreme weathers have the same issue)\r\n\r\n\t\t\t// Mark this pokemon's ability as ending so Pokemon#ignoringAbility skips it\r\n\t\t\tif (source.abilityState.ending) return;\r\n\t\t\tsource.abilityState.ending = true;\r\n\t\t\tconst sortedActive = this.getAllActive();\r\n\t\t\tthis.speedSort(sortedActive);\r\n\t\t\tfor (const pokemon of sortedActive) {\r\n\t\t\t\tif (pokemon !== source) {\r\n\t\t\t\t\t// Will be suppressed by Pokemon#ignoringAbility if needed\r\n\t\t\t\t\tthis.singleEvent('Start', pokemon.getAbility(), pokemon.abilityState, pokemon);\r\n\t\t\t\t\tif (pokemon.m.innates) {\r\n\t\t\t\t\t\tfor (const innate of pokemon.m.innates) {\r\n\t\t\t\t\t\t\t// permanent abilities\r\n\t\t\t\t\t\t\tif (pokemon.volatiles['ability:' + innate]) continue;\r\n\t\t\t\t\t\t\tpokemon.addVolatile('ability:' + innate, pokemon);\r\n\t\t\t\t\t\t}\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},\r\n\tpoisontouch: {\r\n\t\tinherit: true,\r\n\t\t// Activate after Sheer Force to make interaction determistic. The ordering for this ability is\r\n\t\t// an arbitary decision, but is modelled on Stench, which is reflective of on-cart behaviour.\r\n\t\tonModifyMovePriority: -1,\r\n\t},\r\n\tpowerofalchemy: {\r\n\t\tinherit: true,\r\n\t\tonAllyFaint(ally) {\r\n\t\t\tconst pokemon = this.effectState.target;\r\n\t\t\tif (!pokemon.hp) return;\r\n\t\t\tconst isAbility = pokemon.ability === 'powerofalchemy';\r\n\t\t\tlet possibleAbilities = [ally.ability];\r\n\t\t\tif (ally.m.innates) possibleAbilities.pLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,OAAO;AAAA,I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YAAI,oBAAoB,CAAC,OAAO,OAAO;AACvC,YAAI,OAAO,EAAE;AAAS,4BAAkB,KAAK,GAAG,OAAO,EAAE,OAAO;AAChE,cAAM,4BAA4B;AAAA;AAAA,UAEjC;AAAA,UAAa;AAAA,UAAc;AAAA,UAAY;AAAA,UAAgB;AAAA,UAAY;AAAA,UAAY;AAAA,UAAmB;AAAA,UAAkB;AAAA,UAAY;AAAA,UAAS;AAAA,UAAW,QAAQ;AAAA,UAAS,GAAI,QAAQ,EAAE,WAAW,CAAC;AAAA,QAChM;AACA,4BAAoB,kBAClB,OAAO,SAAO,CAAC,KAAK,IAAI,UAAU,IAAI,GAAG,EAAE,eAAe,CAAC,0BAA0B,SAAS,GAAG,CAAC;AACpG,YAAI,CAAC,kBAAkB,QAAQ;AAC9B,0BAAgB,OAAO,MAAM,CAAC;AAC9B;AAAA,QACD;AACA,cAAM,UAAU,KAAK,IAAI,UAAU,IAAI,KAAK,OAAO,iBAAiB,CAAC;AACrE,aAAK,IAAI,YAAY,SAAS,SAAS,yBAAyB,UAAU,MAAM;AAChF,YAAI,WAAW;AACd,kBAAQ,WAAW,OAAO;AAAA,QAC3B,OAAO;AACN,kBAAQ,eAAe,eAAe;AACtC,kBAAQ,YAAY,aAAa,SAAS,OAAO;AAAA,QAClD;AACA;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,iBAAiB;AAAA,IAChB,SAAS;AAAA,IACLine truncated
"names": []
}
+41
View File
@@ -0,0 +1,41 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var moves_exports = {};
__export(moves_exports, {
Moves: () => Moves
});
module.exports = __toCommonJS(moves_exports);
const Moves = {
gastroacid: {
inherit: true,
condition: {
// Ability suppression implemented in Pokemon.ignoringAbility() within sim/pokemon.js
onStart(pokemon) {
this.add("-endability", pokemon);
this.singleEvent("End", pokemon.getAbility(), pokemon.abilityState, pokemon, pokemon, "gastroacid");
if (pokemon.m.innates) {
for (const innate of pokemon.m.innates) {
pokemon.removeVolatile("ability" + innate);
}
}
}
}
}
};
//# sourceMappingURL=moves.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/pokebilities/moves.ts"],
"sourcesContent": ["export const Moves: {[k: string]: ModdedMoveData} = {\r\n\tgastroacid: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\t// Ability suppression implemented in Pokemon.ignoringAbility() within sim/pokemon.js\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.add('-endability', pokemon);\r\n\t\t\t\tthis.singleEvent('End', pokemon.getAbility(), pokemon.abilityState, pokemon, pokemon, 'gastroacid');\r\n\t\t\t\tif (pokemon.m.innates) {\r\n\t\t\t\t\tfor (const innate of pokemon.m.innates) {\r\n\t\t\t\t\t\tpokemon.removeVolatile(\"ability\" + innate);\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},\r\n};\r\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA;AAAA,MAEV,QAAQ,SAAS;AAChB,aAAK,IAAI,eAAe,OAAO;AAC/B,aAAK,YAAY,OAAO,QAAQ,WAAW,GAAG,QAAQ,cAAc,SAAS,SAAS,YAAY;AAClG,YAAI,QAAQ,EAAE,SAAS;AACtB,qBAAW,UAAU,QAAQ,EAAE,SAAS;AACvC,oBAAQ,eAAe,YAAY,MAAM;AAAA,UAC1C;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;",
"names": []
}
+211
View File
@@ -0,0 +1,211 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var scripts_exports = {};
__export(scripts_exports, {
Scripts: () => Scripts
});
module.exports = __toCommonJS(scripts_exports);
const Scripts = {
gen: 9,
field: {
suppressingWeather() {
for (const pokemon of this.battle.getAllActive()) {
if (pokemon && !pokemon.fainted && !pokemon.ignoringAbility() && (pokemon.getAbility().suppressWeather || pokemon.m.innates?.some((k) => this.battle.dex.abilities.get(k).suppressWeather))) {
return true;
}
}
return false;
}
},
pokemon: {
ignoringAbility() {
let neutralizinggas = false;
for (const pokemon of this.battle.getAllActive()) {
if ((pokemon.ability === "neutralizinggas" || pokemon.m.innates?.some((k) => k === "neutralizinggas")) && !pokemon.volatiles["gastroacid"] && !pokemon.abilityState.ending) {
neutralizinggas = true;
break;
}
}
return !!(this.battle.gen >= 5 && !this.isActive || (this.volatiles["gastroacid"] || neutralizinggas && (this.ability !== "neutralizinggas" || this.m.innates?.some((k) => k === "neutralizinggas"))) && !this.getAbility().isPermanent);
},
hasAbility(ability) {
if (this.ignoringAbility())
return false;
if (Array.isArray(ability))
return ability.some((abil) => this.hasAbility(abil));
ability = this.battle.toID(ability);
return this.ability === ability || !!this.volatiles["ability:" + ability];
},
transformInto(pokemon, effect) {
const species = pokemon.species;
if (pokemon.fainted || this.illusion || pokemon.illusion || pokemon.volatiles["substitute"] && this.battle.gen >= 5 || pokemon.transformed && this.battle.gen >= 2 || this.transformed && this.battle.gen >= 5 || species.name === "Eternatus-Eternamax") {
return false;
}
if (!this.setSpecies(species, effect, true))
return false;
this.transformed = true;
this.weighthg = pokemon.weighthg;
const types = pokemon.getTypes(true, true);
this.setType(pokemon.volatiles["roost"] ? pokemon.volatiles["roost"].typeWas : types, true);
this.addedType = pokemon.addedType;
this.knownType = this.isAlly(pokemon) && pokemon.knownType;
this.apparentType = pokemon.apparentType;
let statName;
for (statName in this.storedStats) {
this.storedStats[statName] = pokemon.storedStats[statName];
if (this.modifiedStats)
this.modifiedStats[statName] = pokemon.modifiedStats[statName];
}
this.moveSlots = [];
this.set.ivs = this.battle.gen >= 5 ? this.set.ivs : pokemon.set.ivs;
this.hpType = this.battle.gen >= 5 ? this.hpType : pokemon.hpType;
this.hpPower = this.battle.gen >= 5 ? this.hpPower : pokemon.hpPower;
this.timesAttacked = pokemon.timesAttacked;
for (const moveSlot of pokemon.moveSlots) {
let moveName = moveSlot.move;
if (moveSlot.id === "hiddenpower") {
moveName = "Hidden Power " + this.hpType;
}
this.moveSlots.push({
move: moveName,
id: moveSlot.id,
pp: moveSlot.maxpp === 1 ? 1 : 5,
maxpp: this.battle.gen >= 5 ? moveSlot.maxpp === 1 ? 1 : 5 : moveSlot.maxpp,
target: moveSlot.target,
disabled: false,
used: false,
virtual: true
});
}
let boostName;
for (boostName in pokemon.boosts) {
this.boosts[boostName] = pokemon.boosts[boostName];
}
if (this.battle.gen >= 6) {
const volatilesToCopy = ["focusenergy", "gmaxchistrike", "laserfocus"];
for (const volatile of volatilesToCopy) {
if (pokemon.volatiles[volatile]) {
this.addVolatile(volatile);
if (volatile === "gmaxchistrike")
this.volatiles[volatile].layers = pokemon.volatiles[volatile].layers;
} else {
this.removeVolatile(volatile);
}
}
}
if (effect) {
this.battle.add("-transform", this, pokemon, "[from] " + effect.fullname);
} else {
this.battle.add("-transform", this, pokemon);
}
if (this.terastallized && this.terastallized !== this.apparentType) {
this.battle.add("-start", this, "typechange", this.terastallized, "[silent]");
this.apparentType = this.terastallized;
}
if (this.battle.gen > 2) {
this.setAbility(pokemon.ability, this, true);
if (this.m.innates) {
for (const innate of this.m.innates) {
this.removeVolatile("ability:" + innate);
}
}
if (pokemon.m.innates) {
for (const innate of pokemon.m.innates) {
this.addVolatile("ability:" + innate, this);
}
}
}
if (this.battle.gen === 4) {
if (this.species.num === 487) {
if (this.species.name === "Giratina" && this.item === "griseousorb") {
this.formeChange("Giratina-Origin");
} else if (this.species.name === "Giratina-Origin" && this.item !== "griseousorb") {
this.formeChange("Giratina");
}
}
if (this.species.num === 493) {
const item = this.getItem();
const targetForme = item?.onPlate ? "Arceus-" + item.onPlate : "Arceus";
if (this.species.name !== targetForme) {
this.formeChange(targetForme);
}
}
}
return true;
},
/**
* Changes this Pokemon's forme to match the given speciesId (or species).
* This function handles all changes to stats, ability, type, species, etc.
* as well as sending all relevant messages sent to the client.
*/
formeChange(speciesId, source, isPermanent, message) {
if (!source)
source = this.battle.effect;
const rawSpecies = this.battle.dex.species.get(speciesId);
const species = this.setSpecies(rawSpecies, source);
if (!species)
return false;
if (this.battle.gen <= 2)
return true;
const apparentSpecies = this.illusion ? this.illusion.species.name : species.baseSpecies;
if (isPermanent) {
this.baseSpecies = rawSpecies;
this.details = species.name + (this.level === 100 ? "" : ", L" + this.level) + (this.gender === "" ? "" : ", " + this.gender) + (this.set.shiny ? ", shiny" : "");
this.battle.add("detailschange", this, (this.illusion || this).details);
if (source.effectType === "Item") {
if (source.zMove) {
this.battle.add("-burst", this, apparentSpecies, species.requiredItem);
this.moveThisTurnResult = true;
} else if (source.onPrimal) {
if (this.illusion) {
this.ability = "";
this.battle.add("-primal", this.illusion);
} else {
this.battle.add("-primal", this);
}
} else {
this.battle.add("-mega", this, apparentSpecies, species.requiredItem);
this.moveThisTurnResult = true;
}
} else if (source.effectType === "Status") {
this.battle.add("-formechange", this, species.name, message);
}
} else {
if (source.effectType === "Ability") {
this.battle.add("-formechange", this, species.name, message, `[from] ability: ${source.name}`);
} else {
this.battle.add("-formechange", this, this.illusion ? this.illusion.species.name : species.name, message);
}
}
if (isPermanent && !["disguise", "iceface", "ability:disguise", "ability:iceface"].includes(source.id)) {
if (this.illusion) {
this.ability = "";
}
this.setAbility(species.abilities["0"], null, true);
this.baseAbility = this.ability;
}
if (this.terastallized && this.terastallized !== this.apparentType) {
this.battle.add("-start", this, "typechange", this.terastallized, "[silent]");
this.apparentType = this.terastallized;
}
return true;
}
}
};
//# sourceMappingURL=scripts.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../data/mods/pokebilities/scripts.ts"],
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tgen: 9,\r\n\tfield: {\r\n\t\tsuppressingWeather() {\r\n\t\t\tfor (const pokemon of this.battle.getAllActive()) {\r\n\t\t\t\tif (pokemon && !pokemon.fainted && !pokemon.ignoringAbility() &&\r\n\t\t\t\t\t(pokemon.getAbility().suppressWeather ||\r\n\t\t\t\t\t\tpokemon.m.innates?.some((k: string) => this.battle.dex.abilities.get(k).suppressWeather))) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tpokemon: {\r\n\t\tignoringAbility() {\r\n\t\t\t// Check if any active pokemon have the ability Neutralizing Gas\r\n\t\t\tlet neutralizinggas = false;\r\n\t\t\tfor (const pokemon of this.battle.getAllActive()) {\r\n\t\t\t\t// can't use hasAbility because it would lead to infinite recursion\r\n\t\t\t\tif (\r\n\t\t\t\t\t(pokemon.ability === ('neutralizinggas' as ID) || pokemon.m.innates?.some((k: string) => k === 'neutralizinggas')) &&\r\n\t\t\t\t\t!pokemon.volatiles['gastroacid'] && !pokemon.abilityState.ending\r\n\t\t\t\t) {\r\n\t\t\t\t\tneutralizinggas = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn !!(\r\n\t\t\t\t(this.battle.gen >= 5 && !this.isActive) ||\r\n\t\t\t\t((this.volatiles['gastroacid'] ||\r\n\t\t\t\t\t(neutralizinggas && (this.ability !== ('neutralizinggas' as ID) ||\r\n\t\t\t\t\t\tthis.m.innates?.some((k: string) => k === 'neutralizinggas'))\r\n\t\t\t\t\t)) && !this.getAbility().isPermanent\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t},\r\n\t\thasAbility(ability) {\r\n\t\t\tif (this.ignoringAbility()) return false;\r\n\t\t\tif (Array.isArray(ability)) return ability.some(abil => this.hasAbility(abil));\r\n\t\t\tability = this.battle.toID(ability);\r\n\t\t\treturn this.ability === ability || !!this.volatiles['ability:' + ability];\r\n\t\t},\r\n\t\ttransformInto(pokemon, effect) {\r\n\t\t\tconst species = pokemon.species;\r\n\t\t\tif (pokemon.fainted || this.illusion || pokemon.illusion || (pokemon.volatiles['substitute'] && this.battle.gen >= 5) ||\r\n\t\t\t\t(pokemon.transformed && this.battle.gen >= 2) || (this.transformed && this.battle.gen >= 5) ||\r\n\t\t\t\tspecies.name === 'Eternatus-Eternamax') {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!this.setSpecies(species, effect, true)) return false;\r\n\r\n\t\t\tthis.transformed = true;\r\n\t\t\tthis.weighthg = pokemon.weighthg;\r\n\r\n\t\t\tconst types = pokemon.getTypes(true, true);\r\n\t\t\tthis.setType(pokemon.volatiles['roost'] ? pokemon.volatiles['roost'].typeWas : types, true);\r\n\t\t\tthis.addedType = pokemon.addedType;\r\n\t\t\tthis.knownType = this.isAlly(pokemon) && pokemon.knownType;\r\n\t\t\tthis.apparentType = pokemon.apparentType;\r\n\r\n\t\t\tlet statName: StatIDExceptHP;\r\n\t\t\tfor (statName in this.storedStats) {\r\n\t\t\t\tthis.storedStats[statName] = pokemon.storedStats[statName];\r\n\t\t\t\tif (this.modifiedStats) this.modifiedStats[statName] = pokemon.modifiedStats![statName]; // Gen 1: Copy modified stats.\r\n\t\t\t}\r\n\t\t\tthis.moveSlots = [];\r\n\t\t\tthis.set.ivs = (this.battle.gen >= 5 ? this.set.ivs : pokemon.set.ivs);\r\n\t\t\tthis.hpType = (this.battle.gen >= 5 ? this.hpType : pokemon.hpType);\r\n\t\t\tthis.hpPower = (this.battle.gen >= 5 ? this.hpPower : pokemon.hpPower);\r\n\t\t\tthis.timesAttacked = pokemon.timesAttacked;\r\n\t\t\tfor (const moveSlot of pokemon.moveSlots) {\r\n\t\t\t\tlet moveName = moveSlot.move;\r\n\t\t\t\tif (moveSlot.id === 'hiddenpower') {\r\n\t\t\t\t\tmoveName = 'Hidden Power ' + this.hpType;\r\n\t\t\t\t}\r\n\t\t\t\tthis.moveSlots.push({\r\n\t\t\t\t\tmove: moveName,\r\n\t\t\t\t\tid: moveSlot.id,\r\n\t\t\t\t\tpp: moveSlot.maxpp === 1 ? 1 : 5,\r\n\t\t\t\t\tmaxpp: this.battle.gen >= 5 ? (moveSlot.maxpp === 1 ? 1 : 5) : moveSlot.maxpp,\r\n\t\t\t\t\ttarget: moveSlot.target,\r\n\t\t\t\t\tdisabled: false,\r\n\t\t\t\t\tused: false,\r\n\t\t\t\t\tvirtual: true,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tlet boostName: BoostID;\r\n\t\t\tfor (boostName in pokemon.boosts) {\r\n\t\t\t\tthis.boosts[boostName] = pokemon.boosts[boostName];\r\n\t\t\t}\r\n\t\t\tif (this.battle.gen >= 6) {\r\n\t\t\t\tconst volatilesToCopy = ['focusenergy', 'gmaxchistrike', 'laserfocus'];\r\n\t\t\t\tfor (const volatile of volatilesToCopy) {\r\n\t\t\t\t\tif (pokemon.volatiles[volatile]) {\r\n\t\t\t\t\t\tthis.addVolatile(volatile);\r\n\t\t\t\t\t\tif (volatile === 'gmaxchistrike') this.volatiles[volatile].layers = pokemon.volatiles[volatile].layers;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.removeVolatile(volatile);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (effect) {\r\n\t\t\t\tthis.battle.add('-transform', this, pokemon, '[from] ' + effect.fullname);\r\n\t\t\t} else {\r\n\t\t\t\tthis.battle.add('-transform', this, pokemon);\r\n\t\t\t}\r\n\t\t\tif (this.terastallized && this.terastallized !== this.apparentType) {\r\n\t\t\t\tthis.battle.add('-start', this, 'typechange', this.terastallized, '[silent]');\r\n\t\t\t\tthis.apparentType = this.terastallized;\r\n\t\t\t}\r\n\t\t\tif (this.battlLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,KAAK;AAAA,EACL,OAAO;AAAA,IACN,qBAAqB;AACpB,iBAAW,WAAW,KAAK,OAAO,aAAa,GAAG;AACjD,YAAI,WAAW,CAAC,QAAQ,WAAW,CAAC,QAAQ,gBAAgB,MAC1D,QAAQ,WAAW,EAAE,mBACrB,QAAQ,EAAE,SAAS,KAAK,CAAC,MAAc,KAAK,OAAO,IAAI,UAAU,IAAI,CAAC,EAAE,eAAe,IAAI;AAC5F,iBAAO;AAAA,QACR;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,SAAS;AAAA,IACR,kBAAkB;AAEjB,UAAI,kBAAkB;AACtB,iBAAW,WAAW,KAAK,OAAO,aAAa,GAAG;AAEjD,aACE,QAAQ,YAAa,qBAA4B,QAAQ,EAAE,SAAS,KAAK,CAAC,MAAc,MAAM,iBAAiB,MAChH,CAAC,QAAQ,UAAU,YAAY,KAAK,CAAC,QAAQ,aAAa,QACzD;AACD,4BAAkB;AAClB;AAAA,QACD;AAA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