diff --git a/multi.html b/multi.html
index d44de0d3..27ec6569 100644
--- a/multi.html
+++ b/multi.html
@@ -164,7 +164,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -176,7 +176,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -188,7 +188,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -200,7 +200,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -212,7 +212,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -289,7 +289,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -302,7 +302,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -315,7 +315,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -328,7 +328,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -341,7 +341,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -362,7 +362,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -375,7 +375,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -388,7 +388,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -401,7 +401,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -414,7 +414,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -490,7 +490,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -502,7 +502,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -514,7 +514,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -526,7 +526,7 @@ var formation = new Formation(teamsCount,5);
-
+
@@ -538,7 +538,7 @@ var formation = new Formation(teamsCount,5);
-
+
diff --git a/script.js b/script.js
index 48bc6083..45dd3d13 100644
--- a/script.js
+++ b/script.js
@@ -3031,10 +3031,14 @@ function refreshAll(formationData) {
const memberLi = membersDom.querySelector(`.member-${ti+1}`);
const latentLi = latentsDom.querySelector(`.latents-${ti+1}`);
const assistsLi = assistsDom.querySelector(`.member-${ti+1}`);
- const teamAbilityLi = teamAbilityDom.querySelector(`.abilitys-${ti+1}`);
- const teamMenberAwokenLi = teamMenberAwokenDom.querySelector(`.menber-awoken-${ti+1}`);
- const teamAssistAwokenLi = teamAssistAwokenDom.querySelector(`.menber-awoken-${ti+1}`);
+ const teamAbilityLi = teamAbilityDom ? teamAbilityDom.querySelector(`.abilitys-${ti+1}`) : undefined;
+ const teamMenberAwokenLi = teamAbilityDom ? teamMenberAwokenDom.querySelector(`.menber-awoken-${ti+1}`) : undefined;
+ const teamAssistAwokenLi = teamAbilityDom ? teamAssistAwokenDom.querySelector(`.menber-awoken-${ti+1}`) : undefined;
[memberLi,latentLi,assistsLi,teamAbilityLi,teamMenberAwokenLi,teamAssistAwokenLi].forEach(dom=>{
+ if (!dom)
+ {
+ return;
+ }
if (leaderIdx > 0 && ti == 0)
{
dom.style.transform = `translateX(${leaderIdx*108}px)`;
diff --git a/triple.html b/triple.html
index 55e9449d..bf3b23ac 100644
--- a/triple.html
+++ b/triple.html
@@ -125,7 +125,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -137,7 +137,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -149,7 +149,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -161,7 +161,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -173,7 +173,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -185,7 +185,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -274,7 +274,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -287,7 +287,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -300,7 +300,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -313,7 +313,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -326,7 +326,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -339,7 +339,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -558,7 +558,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -570,7 +570,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -582,7 +582,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -594,7 +594,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -606,7 +606,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -618,7 +618,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -707,7 +707,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -720,7 +720,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -733,7 +733,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -746,7 +746,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -759,7 +759,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -772,7 +772,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -991,7 +991,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1003,7 +1003,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1015,7 +1015,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1027,7 +1027,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1039,7 +1039,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1051,7 +1051,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1140,7 +1140,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1153,7 +1153,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1166,7 +1166,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1179,7 +1179,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1192,7 +1192,7 @@ var formation = new Formation(teamsCount,6);
-
+
@@ -1205,7 +1205,7 @@ var formation = new Formation(teamsCount,6);
-
+