info['id'].'" AND `a`.`delete` = 0 AND `a`.`v1` = "priem" '.$pvr['no'].' AND ( (`b`.`neg` > 0 AND `a`.`v2` != 260) OR `a`.`v2` = 191 OR ( `a`.`v2` = 260 AND `a`.`data` NOT LIKE "%add_mg2static_points=0%" ) ) ORDER BY `a`.`id` DESC LIMIT 2');
mysql_query('DELETE FROM `eff_users` WHERE `uid` = "'.$u->info['id'].'" AND `v1`="priem" AND `v2`="345"');
while ($pvr['pl'] = mysql_fetch_array($pvr['sp']))
{
$pvr['pl']['priem'] = mysql_fetch_array(mysql_query('SELECT * FROM `priems` WHERE `id` = "'.$pvr['pl']['v2'].'" LIMIT 1'));
if( isset($pvr['pl']['priem']) && isset($pvr['pl']['id']) ) {
echo 'Вы успешно использовали прием "Очиститься кровью"';
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
'Очиститься кровью',
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).'',
($btl->hodID)
);
$pvr['edt'] = \Core\ConversionHelper::dataStringToArray($pvr['pl']['data']);
$pvr['edt']['add_zm2proc'] = 0;
$pvr['edt']['add_mg2static_points'] = 0;
$pvr['edt'] = \Core\ConversionHelper::arrayToDataString($pvr['edt']);
if( $pvr['pl']['priem']['id'] == 260 ) {
$prv['color2'] = '000000';
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
$prv['text2'] = '{tm1} Закончилось действие эффекта "Заряд" для {u1}.';
$btl->priemAddLog( $id, 1, 2, $u->info['id'], 0,
'',
$prv['text2'],
($btl->hodID + 0)
);
mysql_query('UPDATE `eff_users` SET `x` = 1, `data` = "'.$pvr['edt'].'" WHERE `id` = "'.$pvr['pl']['ueffid'].'" LIMIT 1');
}else{
$btl->delPriem($pvr['pl'],$btl->users[$btl->uids[$u->info['id']]],100);
}
$this->mintr($pl);
}else{
echo 'Вам нечего очищать...';
$cup = true;
}
}
//Отнимаем тактики
//$this->mintr($pl);
unset($pvr);
?>