Замена Battle->add_log() на Log::add().

This commit is contained in:
2024-02-09 19:28:32 +02:00
parent 88aeb4a912
commit 8af1a5114a
11 changed files with 74 additions and 61 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
<?php
use Battle\Log;
if (!defined('GAME')) {
die();
}
@@ -95,8 +98,8 @@ if (isset($hod)) {
$rg = '--';
}
$mas1['text'] = '{tm1} {u1} {1x16x0} заклинание &quot;<b>' . $pl['name'] . '</b>&quot; на {u2} и восстановил магические силы. <b><font color=#006699>' . $rg . '</font></b> [' . floor($btl->stats[$btl->uids[$u->info['id']]]['mpNow']) . '/' . $btl->stats[$btl->uids[$u->info['id']]]['mpAll'] . '] (Мана)';
$btl->add_log($mas1);
Log::add($mas1);
$mgd = mysql_fetch_array(mysql_query('SELECT `a`.`id` FROM `eff_users` AS `a` JOIN `priems` AS `b` ON `b`.`id` = `a`.`v2` WHERE `a`.`uid` = "' . $u->info['id'] . '" AND `a`.`v1` = "priem" AND `a`.`delete` = "0" AND `b`.`neg` = 1 ORDER BY `id` ASC LIMIT 1'));
if (isset($mgd['id'])) {