mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Remove unneeded variable.
That var was being used to show what `result` and `chance` were for.
This commit is contained in:
parent
1edc40f936
commit
09efc8ecdd
|
|
@ -3496,7 +3496,7 @@ exports.Formats = [
|
|||
move.onHit = function (target, source) {
|
||||
var result = this.random(100);
|
||||
var chance = source.hasAbility('serenegrace') ? 60 : 30;
|
||||
var triggerFlinch = result < chance;
|
||||
// If the result is less than 60 or 30, then Kibitz will flinch the target.
|
||||
if (this.willMove(target) && result < chance) {
|
||||
target.addVolatile('flinch');
|
||||
} else if (target.hp !== 0 && !target.newlySwitched) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user