Gen 3: Implement correct damage flooring (#3655)

This commit is contained in:
Caleb Young 2017-06-18 17:25:03 -07:00 committed by Guangcong Luo
parent 26833a9923
commit 912dfa56c3

View File

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