From 4eae2b51404d95e38865f82c8dbbe95798c4e855 Mon Sep 17 00:00:00 2001 From: Joimer Date: Sun, 21 Dec 2014 21:39:03 +0100 Subject: [PATCH] Gen 1: Implement paralyse speed drop properly --- mods/gen1/scripts.js | 3 +++ mods/gen1/statuses.js | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mods/gen1/scripts.js b/mods/gen1/scripts.js index 05ef8dc4f1..d270436739 100644 --- a/mods/gen1/scripts.js +++ b/mods/gen1/scripts.js @@ -50,6 +50,9 @@ exports.BattleScripts = { if (this.volatiles['brnattackdrop'] && statName === 'atk') { stat = this.battle.clampIntRange(Math.floor(stat / 2), 1); } + if (this.volatiles['parspeeddrop'] && statName === 'spe') { + stat = this.battle.clampIntRange(Math.floor(stat / 4), 1); + } } // Hard coded Reflect and Light Screen boosts diff --git a/mods/gen1/statuses.js b/mods/gen1/statuses.js index c668655295..8f70cf97b4 100644 --- a/mods/gen1/statuses.js +++ b/mods/gen1/statuses.js @@ -49,11 +49,6 @@ exports.BattleStatuses = { pokemon.addVolatile('parspeeddrop'); } }, - parspeeddrop: { - onModifySpe: function (spe) { - return this.clampIntRange(Math.floor(spe / 4), 1); - } - }, slp: { effectType: 'Status', onStart: function (target) {