mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-25 12:29:57 -05:00
Fix CAP not having legal moves in Teambuilder
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user