$v) {
$battle[$k][$bot] = [0, 0, time()];
}
$t1 = explode(";", $bd['t1']);
if (in_array($user['id'], $t1)) {
$ttt = 1;
} else {
$ttt = 2;
}
$lo = Nick::id($user['id'])->short();
$los = Nick::id($bot)->short();
addlog($user['battle'], '' . date("H:i") . ' ' . $lo . ' породил своего клона ' . $los . '.
');
mysql_query('UPDATE `battle` SET `teams` = \'' . serialize($battle) . '\', `t' . $ttt . '` = CONCAT(`t' . $ttt . '`,\';' . $bot . '\') WHERE `id` = "' . $user['battle'] . '" LIMIT 1');
mysql_query("UPDATE `battle` SET `to1` = '" . time() . "', `to2` = '" . time() . "' WHERE `id` = " . $user['battle'] . " LIMIT 1");
echo "Клон создан";
$bet = 1;
} else {
echo "Свиток рассыпался в ваших руках...";
$bet = 1;
}
}