Teambuilder: Show HP moves as useless if outclassed

This commit is contained in:
Guangcong Luo 2016-01-18 19:51:25 -05:00
parent b347a15ef2
commit effa959600

View File

@ -785,6 +785,11 @@
if (id === 'stunspore') isViable = (moves.indexOf('thunderwave') < 0);
if (id === 'gyroball') isViable = (template.baseStats.spe <= 60);
if (id === 'toxic') isViable = (this.gen > 1);
if (id === 'hiddenpowerice') isViable = (moves.indexOf('icebeam') < 0 && template.id !== 'xerneas');
if (id === 'hiddenpowerelectric') isViable = (moves.indexOf('thunderbolt') < 0);
if (id === 'hiddenpowerfire') isViable = (moves.indexOf('flamethrower') < 0);
if (id === 'hiddenpowergrass') isViable = (moves.indexOf('energyball') < 0);
if (id === 'hiddenpowerfighting') isViable = (moves.indexOf('aurasphere') < 0);
if (isViable) {
if (!usableMoves.length) usableMoves.push(['header', "Moves"]);
usableMoves.push(['move', id]);