Skip to content

Commit

Permalink
Random Battle: Improve Sub/Reversal (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascriptmaster authored and TheImmortal committed Jan 29, 2017
1 parent 99283f5 commit 8f9f7d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8f9f7d2

Please sign in to comment.