diff --git a/js/main.js b/js/main.js index 62795aa..777a909 100644 --- a/js/main.js +++ b/js/main.js @@ -556,6 +556,13 @@ updateTeamUI(); } + function addToTeamFromSuggestion(id) { + if (!selectedTeam.includes(id) && selectedTeam.length < 4) { + selectedTeam.push(id); + updateTeamUI(); + } + } + function updateTeamUI() { // Update operator selection document.querySelectorAll('.select-option').forEach(el => { @@ -624,12 +631,13 @@ ` : '
?
'; return ` -
+
${imgHtml}
${op ? op.name.toUpperCase() : id} ${op && op.free ? 'FREE' : ''}

${reason}

+
+
`; }).join('');