Skip to content

Commit

Permalink
Fix Tera Type shown when exporting Ogerpon set
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 committed Sep 14, 2023
1 parent ed7359f commit 50f7e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,8 @@ Storage.exportTeam = function (team, gen, hidestats) {
text += 'Gigantamax: Yes \n';
}
if (gen === 9) {
text += 'Tera Type: ' + (curSet.teraType || Dex.species.get(curSet.species).types[0]) + " \n";
var species = Dex.species.get(curSet.species);
text += 'Tera Type: ' + (species.forceTeraType || curSet.teraType || species.types[0]) + " \n";
}
if (!hidestats) {
var first = true;
Expand Down

0 comments on commit 50f7e95

Please sign in to comment.