WIP: перед введенимем класса Fighter.php
This commit is contained in:
@@ -86,12 +86,11 @@ if (isset($CRON_CORE) && (isset($_POST['atack'], $_POST['block']) || (isset($_PO
|
||||
) . "' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"
|
||||
);
|
||||
}
|
||||
$btl = new Battle();
|
||||
require_once('log_text.php');
|
||||
$btl->is = $u->is;
|
||||
$btl->items = $u->items;
|
||||
$btl->info = $btl->battleInfo($u->info['battle']);
|
||||
if (!isset($btl->info['id'])) {
|
||||
$btl = new Battle();
|
||||
$isBattle = $btl->initRefresh($u);
|
||||
|
||||
if (!$isBattle) {
|
||||
if ($u->info['battle'] == -1) {
|
||||
//завершаем поединок
|
||||
$upd = mysql_query(
|
||||
|
||||
Reference in New Issue
Block a user