mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-24 18:14:48 -05:00
Gen 1: Implement paralyse speed drop properly
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user