Skip to content

Commit

Permalink
Random Doubles: Fix Level Scaling for Parental Bond and Protean (#3216)
Browse files Browse the repository at this point in the history
EV values are balanced now, so it's better to base it on the number of
attacks.
  • Loading branch information
ascriptmaster authored and TheImmortal committed Feb 6, 2017
1 parent 2c285f0 commit 0ea4363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3259,10 +3259,10 @@ exports.BattleScripts = {
if (templateAbility === 'Huge Power' || templateAbility === 'Pure Power') {
bst += template.baseStats.atk;
} else if (templateAbility === 'Parental Bond') {
bst += 0.5 * (evs.atk > evs.spa ? template.baseStats.atk : template.baseStats.spa);
bst += 0.5 * (counter.Physical > counter.Special ? template.baseStats.atk : template.baseStats.spa);
} else if (templateAbility === 'Protean') {
// Holistic judgment. Don't boost Protean as much as Parental Bond
bst += 0.3 * (evs.atk > evs.spa ? template.baseStats.atk : template.baseStats.spa);
bst += 0.3 * (counter.Physical > counter.Special ? template.baseStats.atk : template.baseStats.spa);
} else if (templateAbility === 'Fur Coat') {
bst += template.baseStats.def;
}
Expand Down

0 comments on commit 0ea4363

Please sign in to comment.