From 63f0149476920169f43f3d5ceebf502ce7020de9 Mon Sep 17 00:00:00 2001 From: Rezzo Date: Sat, 2 Dec 2023 21:46:42 +0000 Subject: [PATCH] fix old gens non-fairies type overriding --- play.pokemonshowdown.com/js/client-teambuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/js/client-teambuilder.js b/play.pokemonshowdown.com/js/client-teambuilder.js index 49013e0b3..4e58a4291 100644 --- a/play.pokemonshowdown.com/js/client-teambuilder.js +++ b/play.pokemonshowdown.com/js/client-teambuilder.js @@ -1336,7 +1336,7 @@ buf += ''; buf += '
'; var types = species.types; - var table = (this.curTeam.gen < 7 ? BattleTeambuilderTable['gen' + this.curTeam.gen] : null); + var table = BattleTeambuilderTable(this.curTeam.mod); if ( table && table.overrideDexInfo && species.id in table.overrideDexInfo && table.overrideDexInfo[species.id].types