Pokemon_server / dist /data /mods /gen6 /conditions.js.map
Jofthomas's picture
Jofthomas HF staff
Upload 4781 files
5c2ed06 verified
{
"version": 3,
"sources": ["../../../../data/mods/gen6/conditions.ts"],
"sourcesContent": ["export const Conditions: import('../../../sim/dex-conditions').ModdedConditionDataTable = {\n\tbrn: {\n\t\tinherit: true,\n\t\tonResidual(pokemon) {\n\t\t\tthis.damage(pokemon.baseMaxhp / 8);\n\t\t},\n\t},\n\tpar: {\n\t\tinherit: true,\n\t\tonModifySpe(spe, pokemon) {\n\t\t\t// Paralysis occurs after all other Speed modifiers, so evaluate all modifiers up to this point first\n\t\t\tspe = this.finalModify(spe);\n\t\t\tif (!pokemon.hasAbility('quickfeet')) {\n\t\t\t\tspe = Math.floor(spe * 25 / 100);\n\t\t\t}\n\t\t\treturn spe;\n\t\t},\n\t},\n\tconfusion: {\n\t\tinherit: true,\n\t\tonBeforeMove(pokemon) {\n\t\t\tpokemon.volatiles['confusion'].time--;\n\t\t\tif (!pokemon.volatiles['confusion'].time) {\n\t\t\t\tpokemon.removeVolatile('confusion');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.add('-activate', pokemon, 'confusion');\n\t\t\tif (this.randomChance(1, 2)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst damage = this.actions.getConfusionDamage(pokemon, 40);\n\t\t\tif (typeof damage !== 'number') throw new Error(\"Confusion damage not dealt\");\n\t\t\tthis.damage(damage, pokemon, pokemon, {\n\t\t\t\tid: 'confused',\n\t\t\t\teffectType: 'Move',\n\t\t\t\ttype: '???',\n\t\t\t} as ActiveMove);\n\t\t\treturn false;\n\t\t},\n\t},\n\tchoicelock: {\n\t\tinherit: true,\n\t\tonBeforeMove() {},\n\t},\n};\n"],
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAA6E;AAAA,EACzF,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,WAAW,SAAS;AACnB,WAAK,OAAO,QAAQ,YAAY,CAAC;AAAA,IAClC;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,YAAY,KAAK,SAAS;AAEzB,YAAM,KAAK,YAAY,GAAG;AAC1B,UAAI,CAAC,QAAQ,WAAW,WAAW,GAAG;AACrC,cAAM,KAAK,MAAM,MAAM,KAAK,GAAG;AAAA,MAChC;AACA,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,aAAa,SAAS;AACrB,cAAQ,UAAU,WAAW,EAAE;AAC/B,UAAI,CAAC,QAAQ,UAAU,WAAW,EAAE,MAAM;AACzC,gBAAQ,eAAe,WAAW;AAClC;AAAA,MACD;AACA,WAAK,IAAI,aAAa,SAAS,WAAW;AAC1C,UAAI,KAAK,aAAa,GAAG,CAAC,GAAG;AAC5B;AAAA,MACD;AACA,YAAM,SAAS,KAAK,QAAQ,mBAAmB,SAAS,EAAE;AAC1D,UAAI,OAAO,WAAW;AAAU,cAAM,IAAI,MAAM,4BAA4B;AAC5E,WAAK,OAAO,QAAQ,SAAS,SAAS;AAAA,QACrC,IAAI;AAAA,QACJ,YAAY;AAAA,QACZ,MAAM;AAAA,MACP,CAAe;AACf,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,eAAe;AAAA,IAAC;AAAA,EACjB;AACD;",
"names": []
}