Skip to content

Commit

Permalink
Teambuilder: Fix gen 7 sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Dec 23, 2016
1 parent f15cb65 commit d23ff4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/client-teambuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3359,7 +3359,7 @@
var spriteSize = 96;
var spriteDim = 'width: 96px; height: 96px;';

var gen = {1:'rby', 2:'gsc', 3:'rse', 4:'dpp', 5:'bw', 6:'xy'}[Math.max(this.room.curTeam.gen, template.gen)];
var gen = {1:'rby', 2:'gsc', 3:'rse', 4:'dpp', 5:'bw', 6:'xy', 7:'xy'}[Math.max(this.room.curTeam.gen, template.gen)];
if (Tools.prefs('nopastgens')) gen = 'xy';
if (Tools.prefs('bwgfx') && gen === 'xy') gen = 'bw';
if (gen === 'xy') {
Expand Down

0 comments on commit d23ff4d

Please sign in to comment.