Skip to content

Commit

Permalink
update ancient chooseMove code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezzo64 committed Dec 21, 2023
1 parent 3c24d78 commit c41410f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions play.pokemonshowdown.com/js/client-teambuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3295,13 +3295,13 @@
set.ivs = {hp: 31, atk: 31, def: 31, spa: 31, spd: 31, spe: 31};
if (this.curTeam.gen > 2) {
var HPivs = this.curTeam.dex.types.get(hpType).HPivs;
for (var i in exports.BattleTypeChart[hpType].HPivs) {
set.ivs[i] = exports.BattleTypeChart[hpType].HPivs[i];
for (var i in HPivs) {
set.ivs[i] = HPivs[i];
}
} else {
var HPdvs = this.curTeam.dex.types.get(hpType).HPdvs;
for (var i in exports.BattleTypeChart[hpType].HPdvs) {
set.ivs[i] = exports.BattleTypeChart[hpType].HPdvs[i] * 2;
for (var i in HPdvs) {
set.ivs[i] = HPdvs[i] * 2;
}
var atkDV = Math.floor(set.ivs.atk / 2);
var defDV = Math.floor(set.ivs.def / 2);
Expand Down

0 comments on commit c41410f

Please sign in to comment.