{ "version": 3, "sources": ["../../../../../data/mods/gen9dlc1/abilities.ts"], "sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\n\tcommander: {\n\t\tinherit: true,\n\t\tflags: {failroleplay: 1, noreceiver: 1, noentrain: 1, notrace: 1, failskillswap: 1, notransform: 1},\n\t},\n\tgulpmissile: {\n\t\tinherit: true,\n\t\tflags: {failroleplay: 1, noreceiver: 1, noentrain: 1, notrace: 1, failskillswap: 1, cantsuppress: 1, notransform: 1},\n\t},\n\tprotosynthesis: {\n\t\tinherit: true,\n\t\tcondition: {\n\t\t\tnoCopy: true,\n\t\t\tonStart(pokemon, source, effect) {\n\t\t\t\tif (effect?.name === 'Booster Energy') {\n\t\t\t\t\tthis.effectState.fromBooster = true;\n\t\t\t\t\tthis.add('-activate', pokemon, 'ability: Protosynthesis', '[fromitem]');\n\t\t\t\t} else {\n\t\t\t\t\tthis.add('-activate', pokemon, 'ability: Protosynthesis');\n\t\t\t\t}\n\t\t\t\tthis.effectState.bestStat = pokemon.getBestStat(false, true);\n\t\t\t\tthis.add('-start', pokemon, 'protosynthesis' + this.effectState.bestStat);\n\t\t\t},\n\t\t\tonModifyAtkPriority: 5,\n\t\t\tonModifyAtk(atk, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'atk') return;\n\t\t\t\tthis.debug('Protosynthesis atk boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifyDefPriority: 6,\n\t\t\tonModifyDef(def, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'def') return;\n\t\t\t\tthis.debug('Protosynthesis def boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifySpAPriority: 5,\n\t\t\tonModifySpA(spa, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'spa') return;\n\t\t\t\tthis.debug('Protosynthesis spa boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifySpDPriority: 6,\n\t\t\tonModifySpD(spd, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'spd') return;\n\t\t\t\tthis.debug('Protosynthesis spd boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifySpe(spe, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'spe') return;\n\t\t\t\tthis.debug('Protosynthesis spe boost');\n\t\t\t\treturn this.chainModify(1.5);\n\t\t\t},\n\t\t\tonEnd(pokemon) {\n\t\t\t\tthis.add('-end', pokemon, 'Protosynthesis');\n\t\t\t},\n\t\t},\n\t\tflags: {failroleplay: 1, noreceiver: 1, noentrain: 1, notrace: 1, failskillswap: 1, notransform: 1, cantsuppress: 1},\n\t},\n\tquarkdrive: {\n\t\tinherit: true,\n\t\tcondition: {\n\t\t\tnoCopy: true,\n\t\t\tonStart(pokemon, source, effect) {\n\t\t\t\tif (effect?.name === 'Booster Energy') {\n\t\t\t\t\tthis.effectState.fromBooster = true;\n\t\t\t\t\tthis.add('-activate', pokemon, 'ability: Quark Drive', '[fromitem]');\n\t\t\t\t} else {\n\t\t\t\t\tthis.add('-activate', pokemon, 'ability: Quark Drive');\n\t\t\t\t}\n\t\t\t\tthis.effectState.bestStat = pokemon.getBestStat(false, true);\n\t\t\t\tthis.add('-start', pokemon, 'quarkdrive' + this.effectState.bestStat);\n\t\t\t},\n\t\t\tonModifyAtkPriority: 5,\n\t\t\tonModifyAtk(atk, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'atk') return;\n\t\t\t\tthis.debug('Quark Drive atk boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifyDefPriority: 6,\n\t\t\tonModifyDef(def, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'def') return;\n\t\t\t\tthis.debug('Quark Drive def boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifySpAPriority: 5,\n\t\t\tonModifySpA(spa, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'spa') return;\n\t\t\t\tthis.debug('Quark Drive spa boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifySpDPriority: 6,\n\t\t\tonModifySpD(spd, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'spd') return;\n\t\t\t\tthis.debug('Quark Drive spd boost');\n\t\t\t\treturn this.chainModify([5325, 4096]);\n\t\t\t},\n\t\t\tonModifySpe(spe, pokemon) {\n\t\t\t\tif (this.effectState.bestStat !== 'spe') return;\n\t\t\t\tthis.debug('Quark Drive spe boost');\n\t\t\t\treturn this.chainModify(1.5);\n\t\t\t},\n\t\t\tonEnd(pokemon) {\n\t\t\t\tthis.add('-end', pokemon, 'Quark Drive');\n\t\t\t},\n\t\t},\n\t\tflags: {failroleplay: 1, noreceiver: 1, noentrain: 1, notrace: 1, failskillswap: 1, notransform: 1, cantsuppress: 1},\n\t},\n};\n"], "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,WAAW;AAAA,IACV,SAAS;AAAA,IACT,OAAO,EAAC,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,eAAe,GAAG,aAAa,EAAC;AAAA,EACnG;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,OAAO,EAAC,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,EAAC;AAAA,EACpH;AAAA,EACA,gBAAgB;AAAA,IACf,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ,SAAS,QAAQ,QAAQ;AAChC,YAAI,QAAQ,SAAS,kBAAkB;AACtC,eAAK,YAAY,cAAc;AAC/B,eAAK,IAAI,aAAa,SAAS,2BAA2B,YAAY;AAAA,QACvE,OAAO;AACN,eAAK,IAAI,aAAa,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