Замена mysql_query и упрощение.

This commit is contained in:
2024-02-10 18:18:11 +02:00
parent 98882e156e
commit 8c49088f27
3 changed files with 90 additions and 97 deletions
+4 -4
View File
@@ -107,14 +107,14 @@ class Priems
}
/** используем прием каждый ход
* @param $eff
* @param $pr
* @param Battle $btl
* @param array $eff
* @return bool
*/
public function hodUsePriem($eff, $pr)
public function hodUsePriem(Battle $btl, array $eff): bool
{
global $btl;
$u = $this->u; // Для присоедиянемых файлов.
$pr = $eff['priem'];
$return_main = true;
$ue = Db::getRow(
'select * from users left join stats on (users.id = stats.id) where users.id = ? and battle = ? and hpnow > 0',