Fix gen 7 mons' battle anims not showing (#826)

This commit is contained in:
asgdf
2016-11-30 06:55:44 +01:00
committed by Guangcong Luo
parent 9f9769033a
commit 6aef44cb72

View File

@@ -1146,7 +1146,6 @@ var Tools = {
// Decide what gen sprites to use.
var gen = {1:'rby', 2:'gsc', 3:'rse', 4:'dpp', 5:'bw', 6:'xy', 7:'xy'}[Math.max(options.gen, pokemon.gen)];
if (pokemon.gen === 7) gen = 'bw';
if (Tools.prefs('nopastgens')) gen = 'xy';
if (Tools.prefs('bwgfx') && gen === 'xy') gen = 'bw';