diff --git a/Admin/Templates/addUsers.tpl b/Admin/Templates/addUsers.tpl
index 8123850d..36b74997 100644
--- a/Admin/Templates/addUsers.tpl
+++ b/Admin/Templates/addUsers.tpl
@@ -42,7 +42,7 @@ if(isset($_GET['e'])) {
}
elseif(isset($_GET['g']) && $_GET['g']=='OK'){
$baseName = $_GET['bn']; $mode = $_GET['mo']; $skipped=(int)$_GET['sk']; $bp=(int)$_GET['bp'];
- $tribe = [0=>RANDOM,1=>TRIBE1,2=>TRIBE2,3=>TRIBE3][$_GET['tr']]??'Unknown';
+ $tribe = [0=>RANDOM,1=>TRIBE1,2=>TRIBE2,3=>TRIBE3,6=>TRIBE6,7=>TRIBE7,8=>TRIBE8,9=>TRIBE9][$_GET['tr']]??'Unknown';
if($mode==='many_accounts'){
$amount=(int)$_GET['am'];
@@ -149,6 +149,10 @@ elseif(isset($_GET['g']) && $_GET['g']=='OK'){
+
+
+
+
diff --git a/GameEngine/Admin/Mods/addUsers.php b/GameEngine/Admin/Mods/addUsers.php
index 9aa1e4fe..b789709a 100755
--- a/GameEngine/Admin/Mods/addUsers.php
+++ b/GameEngine/Admin/Mods/addUsers.php
@@ -69,8 +69,19 @@ if (strlen($baseName) > 20) {
// convenience closure: pick tribe once (for a user)
$chooseTribe = function(int $postTribe) {
- if ($postTribe === 0) return rand(1,3);
- return max(1, min(3, $postTribe));
+
+ // Random doar triburile jucabile
+ if ($postTribe === 0) {
+ $tribes = [1,2,3,6,7,8,9];
+ return $tribes[array_rand($tribes)];
+ }
+
+ // Permite doar triburile jucabile
+ if (!in_array($postTribe, [1,2,3,6,7,8,9])) {
+ return 1;
+ }
+
+ return $postTribe;
};
/* ===================== FIX UNIT BUG ===================== */