Pokemon_server / dist /data /mods /gen5 /conditions.js.map
Jofthomas's picture
Jofthomas HF staff
Upload 4781 files
5c2ed06 verified
{
"version": 3,
"sources": ["../../../../data/mods/gen5/conditions.ts"],
"sourcesContent": ["export const Conditions: import('../../../sim/dex-conditions').ModdedConditionDataTable = {\n\tslp: {\n\t\tinherit: true,\n\t\tonSwitchIn(target) {\n\t\t\tthis.effectState.time = this.effectState.startTime;\n\t\t},\n\t},\n\tpartiallytrapped: {\n\t\tinherit: true,\n\t\tonStart(pokemon, source) {\n\t\t\tthis.add('-activate', pokemon, 'move: ' + this.effectState.sourceEffect, `[of] ${source}`);\n\t\t\tthis.effectState.boundDivisor = source.hasItem('bindingband') ? 8 : 16;\n\t\t},\n\t\tonResidual(pokemon) {\n\t\t\tconst trapper = this.effectState.source;\n\t\t\tif (trapper && (!trapper.isActive || trapper.hp <= 0 || !trapper.activeTurns)) {\n\t\t\t\tdelete pokemon.volatiles['partiallytrapped'];\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.damage(pokemon.baseMaxhp / this.effectState.boundDivisor);\n\t\t},\n\t},\n\tstall: {\n\t\t// Protect, Detect, Endure counter\n\t\tduration: 2,\n\t\tcounterMax: 256,\n\t\tonStart() {\n\t\t\tthis.effectState.counter = 2;\n\t\t},\n\t\tonStallMove() {\n\t\t\t// this.effectState.counter should never be undefined here.\n\t\t\t// However, just in case, use 1 if it is undefined.\n\t\t\tconst counter = this.effectState.counter || 1;\n\t\t\tif (counter >= 256) {\n\t\t\t\treturn this.randomChance(1, 2 ** 32);\n\t\t\t}\n\t\t\tthis.debug(`Success chance: ${Math.round(100 / counter)}%`);\n\t\t\treturn this.randomChance(1, counter);\n\t\t},\n\t\tonRestart() {\n\t\t\tif (this.effectState.counter < (this.effect as Condition).counterMax!) {\n\t\t\t\tthis.effectState.counter *= 2;\n\t\t\t}\n\t\t\tthis.effectState.duration = 2;\n\t\t},\n\t},\n\tgem: {\n\t\tduration: 1,\n\t\taffectsFainted: true,\n\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