Gen 1: Implement paralyse speed drop properly

This commit is contained in:
Joimer
2014-12-21 21:39:03 +01:00
parent bcd970f30d
commit 4eae2b5140
2 changed files with 3 additions and 5 deletions

View File

@@ -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

View File

@@ -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) {