mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 02:39:38 -05:00
Gen 3: Implement correct damage flooring (#3655)
This commit is contained in:
parent
26833a9923
commit
912dfa56c3
|
|
@ -34,6 +34,10 @@ exports.BattleScripts = {
|
|||
// Weather
|
||||
baseDamage = this.runEvent('WeatherModifyDamage', pokemon, target, move, baseDamage);
|
||||
|
||||
if (this.gen === 3 && move.category === 'Physical' && !Math.floor(baseDamage)) {
|
||||
baseDamage = 1;
|
||||
}
|
||||
|
||||
baseDamage += 2;
|
||||
|
||||
if (move.crit) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user