mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-15 00:40:13 -05:00
remove redundant code in get team
This commit is contained in:
parent
573673ef35
commit
b72c19c49a
|
|
@ -623,9 +623,7 @@ exports.BattleScripts = {
|
|||
},
|
||||
getTeam: function (side, team) {
|
||||
var format = side.battle.getFormat();
|
||||
if (format.team === 'random') {
|
||||
return this.randomTeam(side);
|
||||
} else if (typeof format.team === 'string' && format.team.substr(0, 6) === 'random') {
|
||||
if (typeof format.team === 'string' && format.team.substr(0, 6) === 'random') {
|
||||
return this[format.team + 'Team'](side);
|
||||
} else if (team) {
|
||||
return team;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user