diff --git a/play.pokemonshowdown.com/js/client-teambuilder.js b/play.pokemonshowdown.com/js/client-teambuilder.js
index f48abbdde..5e33f16a4 100644
--- a/play.pokemonshowdown.com/js/client-teambuilder.js
+++ b/play.pokemonshowdown.com/js/client-teambuilder.js
@@ -2449,135 +2449,137 @@
}
buf += '';
- if (this.curTeam.gen > 2) {
- buf += '
IVs
';
- if (!set.ivs) set.ivs = {};
- for (var i in stats) {
- if (set.ivs[i] === undefined || isNaN(set.ivs[i])) set.ivs[i] = 31;
- var val = '' + (set.ivs[i]);
- buf += '
';
+ if (!usesStatPoints) {
+ if (this.curTeam.gen > 2) {
+ buf += '
IVs
';
+ if (!set.ivs) set.ivs = {};
+ for (var i in stats) {
+ if (set.ivs[i] === undefined || isNaN(set.ivs[i])) set.ivs[i] = 31;
+ var val = '' + (set.ivs[i]);
+ buf += '
';
+ }
+ var hpType = '';
+ if (set.moves) {
+ for (var i = 0; i < set.moves.length; i++) {
+ var moveid = toID(set.moves[i]);
+ if (moveid.slice(0, 11) === 'hiddenpower') {
+ hpType = moveid.slice(11);
+ }
+ }
+ }
+ if (hpType && !this.canHyperTrain(set)) {
+ var hpIVs;
+ switch (hpType) {
+ case 'dark':
+ hpIVs = ['111111']; break;
+ case 'dragon':
+ hpIVs = ['011111', '101111', '110111']; break;
+ case 'ice':
+ hpIVs = ['010111', '100111', '111110']; break;
+ case 'psychic':
+ hpIVs = ['011110', '101110', '110110']; break;
+ case 'electric':
+ hpIVs = ['010110', '100110', '111011']; break;
+ case 'grass':
+ hpIVs = ['011011', '101011', '110011']; break;
+ case 'water':
+ hpIVs = ['100011', '111010']; break;
+ case 'fire':
+ hpIVs = ['101010', '110010']; break;
+ case 'steel':
+ hpIVs = ['100010', '111101']; break;
+ case 'ghost':
+ hpIVs = ['101101', '110101']; break;
+ case 'bug':
+ hpIVs = ['100101', '111100', '101100']; break;
+ case 'rock':
+ hpIVs = ['001100', '110100', '100100']; break;
+ case 'ground':
+ hpIVs = ['000100', '111001', '101001']; break;
+ case 'poison':
+ hpIVs = ['001001', '110001', '100001']; break;
+ case 'flying':
+ hpIVs = ['000001', '111000', '101000']; break;
+ case 'fighting':
+ hpIVs = ['001000', '110000', '100000']; break;
+ }
+ buf += '
';
+ } else if (!usesStatPoints) {
+ buf += '
';
+ }
+ buf += '
';
+ } else {
+ buf += '
DVs
';
+ if (!set.ivs) set.ivs = {};
+ for (var i in stats) {
+ if (set.ivs[i] === undefined || isNaN(set.ivs[i])) set.ivs[i] = 31;
+ var val = '' + Math.floor(set.ivs[i] / 2);
+ buf += '
';
+ }
+ buf += '
';
}
- var hpType = '';
- if (set.moves) {
- for (var i = 0; i < set.moves.length; i++) {
- var moveid = toID(set.moves[i]);
- if (moveid.slice(0, 11) === 'hiddenpower') {
- hpType = moveid.slice(11);
- }
- }
- }
- if (hpType && !this.canHyperTrain(set)) {
- var hpIVs;
- switch (hpType) {
- case 'dark':
- hpIVs = ['111111']; break;
- case 'dragon':
- hpIVs = ['011111', '101111', '110111']; break;
- case 'ice':
- hpIVs = ['010111', '100111', '111110']; break;
- case 'psychic':
- hpIVs = ['011110', '101110', '110110']; break;
- case 'electric':
- hpIVs = ['010110', '100110', '111011']; break;
- case 'grass':
- hpIVs = ['011011', '101011', '110011']; break;
- case 'water':
- hpIVs = ['100011', '111010']; break;
- case 'fire':
- hpIVs = ['101010', '110010']; break;
- case 'steel':
- hpIVs = ['100010', '111101']; break;
- case 'ghost':
- hpIVs = ['101101', '110101']; break;
- case 'bug':
- hpIVs = ['100101', '111100', '101100']; break;
- case 'rock':
- hpIVs = ['001100', '110100', '100100']; break;
- case 'ground':
- hpIVs = ['000100', '111001', '101001']; break;
- case 'poison':
- hpIVs = ['001001', '110001', '100001']; break;
- case 'flying':
- hpIVs = ['000001', '111000', '101000']; break;
- case 'fighting':
- hpIVs = ['001000', '110000', '100000']; break;
- }
- buf += '
';
- } else if (!usesStatPoints) {
- buf += '
';
- }
- buf += '
';
- } else {
- buf += '