mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-22 07:25:28 -05:00
43 lines
847 B
JavaScript
43 lines
847 B
JavaScript
'use strict';
|
|
|
|
exports.BattleStatuses = {
|
|
brn: {
|
|
inherit: true,
|
|
onResidual: function (pokemon) {
|
|
this.damage(pokemon.maxhp / 8);
|
|
},
|
|
},
|
|
par: {
|
|
inherit: true,
|
|
onModifySpe: function (spe, pokemon) {
|
|
if (!pokemon.hasAbility('quickfeet')) {
|
|
return this.chainModify(0.25);
|
|
}
|
|
},
|
|
},
|
|
confusion: {
|
|
inherit: true,
|
|
onBeforeMove: function (pokemon) {
|
|
pokemon.volatiles.confusion.time--;
|
|
if (!pokemon.volatiles.confusion.time) {
|
|
pokemon.removeVolatile('confusion');
|
|
return;
|
|
}
|
|
this.add('-activate', pokemon, 'confusion');
|
|
if (this.random(2) === 0) {
|
|
return;
|
|
}
|
|
this.damage(this.getDamage(pokemon, pokemon, 40), pokemon, pokemon, {
|
|
id: 'confused',
|
|
effectType: 'Move',
|
|
type: '???',
|
|
});
|
|
return false;
|
|
},
|
|
},
|
|
choicelock: {
|
|
inherit: true,
|
|
onBeforeMove: function () {},
|
|
},
|
|
};
|