mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-16 09:26:48 -05:00
Fix crash in monotype validator
This commit is contained in:
parent
4c36582434
commit
80b375fa52
|
|
@ -1348,6 +1348,7 @@ exports.BattleFormats = {
|
|||
var typeTable = {};
|
||||
for (var i=0; i<team.length; i++) {
|
||||
var template = this.getTemplate(team[i].species);
|
||||
if (!template.types) continue;
|
||||
|
||||
// first type
|
||||
var type = template.types[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user