Fix CAP not having legal moves in Teambuilder

This commit is contained in:
Slayer95
2013-12-11 15:48:40 -05:00
parent d76f1bff4d
commit 85bcee40f7

View File

@@ -616,7 +616,7 @@
// cache movelist ref
var speciesid = toId(this.curSet.species);
var g6 = (this.curTeam.format && this.curTeam.format.substr(0,3) !== 'gen' && this.curTeam.format.substr(0,8) !== 'pokebank');
var g6 = (this.curTeam.format && this.curTeam.format.substr(0,3) !== 'gen' && this.curTeam.format.substr(0,8) !== 'pokebank' && this.curTeam.format.substr(0, 4) !== 'cap');
this.movelist = (g6 ? Tools.g6movelists[speciesid] : Tools.movelists[speciesid]);
this.$chart.html('<em>Loading '+this.curChartType+'...</em>');
@@ -632,7 +632,7 @@
updateChartDelayed: function() {
// cache movelist ref
var speciesid = toId(this.curSet.species);
var g6 = (this.curTeam.format && this.curTeam.format.substr(0,3) !== 'gen' && this.curTeam.format.substr(0,8) !== 'pokebank');
var g6 = (this.curTeam.format && this.curTeam.format.substr(0,3) !== 'gen' && this.curTeam.format.substr(0,8) !== 'pokebank' && this.curTeam.format.substr(0, 4) !== 'cap');
this.movelist = (g6 ? Tools.g6movelists[speciesid] : Tools.movelists[speciesid]);
var self = this;