Jofthomas's picture
Jofthomas HF staff
Upload 4781 files
5c2ed06 verified
{
"version": 3,
"sources": ["../../../../data/mods/pokemoves/moves.ts"],
"sourcesContent": ["export const Moves: import('../../../sim/dex-moves').ModdedMoveDataTable = {\n\tconversion: {\n\t\tinherit: true,\n\t\tonHit(target) {\n\t\t\tconst moveSlotID = target.moveSlots[0].id;\n\t\t\tlet type = this.dex.moves.get(moveSlotID).type;\n\t\t\tif (this.dex.species.get(moveSlotID).exists) {\n\t\t\t\ttype = this.dex.species.get(moveSlotID).types[0];\n\t\t\t}\n\t\t\tif (target.hasType(type) || !target.setType(type)) return false;\n\t\t\tthis.add('-start', target, 'typechange', type);\n\t\t},\n\t},\n\tgastroacid: {\n\t\tinherit: true,\n\t\tcondition: {\n\t\t\t// Ability suppression implemented in Pokemon.ignoringAbility() within sim/pokemon.js\n\t\t\tonStart(pokemon) {\n\t\t\t\tthis.add('-endability', pokemon);\n\t\t\t\tthis.singleEvent('End', pokemon.getAbility(), pokemon.abilityState, pokemon, pokemon, 'gastroacid');\n\t\t\t\tconst keys = Object.keys(pokemon.volatiles).filter(x => x.startsWith(\"ability:\"));\n\t\t\t\tif (keys.length) {\n\t\t\t\t\tfor (const abil of keys) {\n\t\t\t\t\t\tpokemon.removeVolatile(abil);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t},\n};\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAA8D;AAAA,EAC1E,YAAY;AAAA,IACX,SAAS;AAAA,IACT,MAAM,QAAQ;AACb,YAAM,aAAa,OAAO,UAAU,CAAC,EAAE;AACvC,UAAI,OAAO,KAAK,IAAI,MAAM,IAAI,UAAU,EAAE;AAC1C,UAAI,KAAK,IAAI,QAAQ,IAAI,UAAU,EAAE,QAAQ;AAC5C,eAAO,KAAK,IAAI,QAAQ,IAAI,UAAU,EAAE,MAAM,CAAC;AAAA,MAChD;AACA,UAAI,OAAO,QAAQ,IAAI,KAAK,CAAC,OAAO,QAAQ,IAAI;AAAG,eAAO;AAC1D,WAAK,IAAI,UAAU,QAAQ,cAAc,IAAI;AAAA,IAC9C;AAAA,EACD;AAAA,EACA,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,cAAM,OAAO,OAAO,KAAK,QAAQ,SAAS,EAAE,OAAO,OAAK,EAAE,WAAW,UAAU,CAAC;AAChF,YAAI,KAAK,QAAQ;AAChB,qBAAW,QAAQ,MAAM;AACxB,oBAAQ,eAAe,IAAI;AAAA,UAC5B;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;",
"names": []
}