Skip to content

Commit

Permalink
Fix Gen 6 rands calc
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed Sep 6, 2023
1 parent f686853 commit 8dbb760
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/shared_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ $(".set-selector").change(function () {
$(this).closest('.poke-info').find(".extraSetAbilities").text(listAbilities.join(', '));
if (gen >= 2) $(this).closest('.poke-info').find(".item-pool").show();
$(this).closest('.poke-info').find(".extraSetItems").text(listItems.join(', '));
if (gen >= 9 || gen === 7) {
if (gen >= 9 || gen === 7 || gen === 6) {
$(this).closest('.poke-info').find(".role-pool").show();
if (gen >= 9) $(this).closest('.poke-info').find(".tera-type-pool").show();
}
Expand Down Expand Up @@ -557,7 +557,7 @@ $(".set-selector").change(function () {
}
var setMoves = set.moves;
if (randset) {
if (gen < 9 && gen !== 7) {
if (gen < 9 && gen !== 7 && gen !== 6) {
setMoves = randset.moves;
} else {
setMoves = [];
Expand Down Expand Up @@ -787,7 +787,7 @@ function createPokemon(pokeInfo) {
evs[stat] = (set.evs && typeof set.evs[legacyStat] !== "undefined") ? set.evs[legacyStat] : 0;
}
var moveNames = set.moves;
if (isRandoms && (gen >= 9 || gen === 7)) {
if (isRandoms && (gen >= 9 || gen === 7 || gen === 6)) {
moveNames = [];
for (var role in set.roles) {
for (var q = 0; q < set.roles[role].moves.length; q++) {
Expand Down

0 comments on commit 8dbb760

Please sign in to comment.