Перенос и унификация функции снятия всех предметов в класс DressedItems.

This commit is contained in:
lopar
2021-03-11 20:58:38 +02:00
parent 3f22c6664a
commit c54b97681b
12 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
if ($user['battle'] > 0) {
echo "Не в бою...";
} elseif (rand(1, 100) != 1) {
undressall($user['id']);
\Battles\DressedItems::undressAllItems($user['id']);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
if (empty($_SESSION['uid'])) {
header("Location: index.php");