From 8a76fb40995fb53446a4ffe0cb796eb632dcc3d6 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 23 Dec 2011 02:21:13 -0500 Subject: [PATCH] Fix a few bugs in the team validator --- tools.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tools.js b/tools.js index 2604b3c49e..96fdf73ab9 100644 --- a/tools.js +++ b/tools.js @@ -214,7 +214,7 @@ function BattleTools() } else { - if (format.banlistTable) format.banlistTable = {}; + if (!format.banlistTable) format.banlistTable = {}; if (!format.setBanTable) format.setBanTable = []; if (!format.teamBanTable) format.teamBanTable = []; @@ -224,10 +224,10 @@ function BattleTools() { for (var i=0; i