tribe - 1) * 10 + 1; $end = $session->tribe * 10; /* build unit list once (keeps alignment safe) */ global $unitsbytype; $units = []; for ($i = $start; $i <= $end; $i++) { // scoutii nu pot fi folositi in farmlist (generic pentru toate triburile) if (in_array($i, $unitsbytype['scout'])) { continue; } $units[] = $i; } ?>