2022-06-06 21:30:34 +00:00
|
|
|
<?
|
|
|
|
if(!defined('GAME')) {
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
/*
|
2023-01-10 16:29:32 +00:00
|
|
|
Прием: Смена противника
|
2022-06-06 21:30:34 +00:00
|
|
|
*/
|
|
|
|
$pvr = array();
|
|
|
|
//echo '['.$btl->stats[$btl->uid[$u->info['id']]]['smena'].']';
|
|
|
|
//if( isset($this->ue['id']) ) {
|
|
|
|
$u->info['smena'] += 1;
|
|
|
|
$btl->users[$btl->uid[$u->info['id']]]['smena'] += 1;
|
|
|
|
mysql_query('UPDATE `stats` SET `smena` = "'.mysql_real_escape_string($u->info['smena']).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
|
|
//$u->info['enemy'] = $this->ue['id'];
|
2023-01-10 16:29:32 +00:00
|
|
|
echo '<font color=red><b>Вы успешно использовали прием "Выбор противника"</b></font>';
|
2022-06-06 21:30:34 +00:00
|
|
|
$btl->priemAddLog( $id, 1, 2, $u->info['id'], 0,
|
2023-01-10 16:29:32 +00:00
|
|
|
'Выбор противника',
|
2022-06-06 21:30:34 +00:00
|
|
|
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).'',
|
|
|
|
($btl->hodID)
|
|
|
|
);
|
|
|
|
//}
|
2023-01-10 16:29:32 +00:00
|
|
|
//Отнимаем тактики
|
2022-06-06 21:30:34 +00:00
|
|
|
$this->mintr($pl);
|
|
|
|
|
|
|
|
unset($pvr);
|
|
|
|
?>
|