Random Battle: Improve Sub/Reversal (#3193)

This commit is contained in:
Kevin Lau 2017-01-29 03:43:13 -08:00 committed by The Immortal
parent 99283f5988
commit 8f9f7d2d1f

View File

@ -2275,6 +2275,9 @@ exports.BattleScripts = {
} else if (hasMove['bellydrum'] && item === 'Sitrus Berry') {
// Belly Drum should activate Sitrus Berry
if (hp % 2 > 0) evs.hp -= 4;
} else if (hasMove['substitute'] && hasMove['reversal']) {
// Reversal users should be able to use four Substitutes
if (hp % 4 === 0) evs.hp -= 4;
} else {
// Maximize number of Stealth Rock switch-ins
if (this.getEffectiveness('Rock', template) === 1) {