105 lines
2.9 KiB
PHP
105 lines
2.9 KiB
PHP
<?
|
|
if(!defined('GAME')) {
|
|
die();
|
|
}
|
|
/*
|
|
if( $this->stats[$this->uids[$vrm['uid1']]]['yhod'] > 0 ) {
|
|
$this->atacks[$id]['uid1'] = $vrm['uid1'];
|
|
}elseif( $this->stats[$this->uids[$vrm['uid2']]]['yhod'] > 0 ) {
|
|
$this->atacks[$id]['uid2'] = $vrm['uid2'];
|
|
}
|
|
*/
|
|
/*
|
|
Прием: Туманный Образ [8]
|
|
*/
|
|
$pvr = array();
|
|
if( isset($pr_momental_this)) {
|
|
$fx_moment = function( $uid, $enemy, $j_id, $yron, $profil ) {
|
|
return round($yron);
|
|
};
|
|
}elseif( isset($pr_tested_this) ) {
|
|
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
|
// -- начало приема
|
|
global $u, $btl;
|
|
//
|
|
//Параметры приема
|
|
$pvr['used'] = 0;
|
|
//
|
|
$uid1 = $btl->atacks[$id]['uid1'];
|
|
$uid2 = $btl->atacks[$id]['uid2'];
|
|
if( $uid == $uid2 ) {
|
|
$a = 1;
|
|
$b = 2;
|
|
$u1 = ${'uid1'};
|
|
$u2 = ${'uid2'};
|
|
}elseif( $uid == $uid1 ) {
|
|
$a = 2;
|
|
$b = 1;
|
|
$u1 = ${'uid2'};
|
|
$u2 = ${'uid1'};
|
|
}
|
|
if( isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
|
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id` = "'.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].'" AND `uid` = "'.$uid.'" LIMIT 1');
|
|
unset($btl->stats[$btl->uids[$uid]]['u_priem'][$j_id]);
|
|
}
|
|
//
|
|
// -- конец приема
|
|
return $at;
|
|
};
|
|
unset( $pr_used_this );
|
|
}elseif( isset($pr_used_this) ) {
|
|
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
|
// -- начало приема
|
|
global $u, $btl;
|
|
//
|
|
//Параметры приема
|
|
$pvr['used'] = 0;
|
|
//
|
|
//echo '$user::['.$uid.']->("Прикрыться");';
|
|
$uid1 = $btl->atacks[$id]['uid1'];
|
|
$uid2 = $btl->atacks[$id]['uid2'];
|
|
if( $uid == $uid2 ) {
|
|
$a = 1;
|
|
$b = 2;
|
|
$u1 = ${'uid1'};
|
|
$u2 = ${'uid2'};
|
|
}elseif( $uid == $uid1 ) {
|
|
$a = 2;
|
|
$b = 1;
|
|
$u1 = ${'uid2'};
|
|
$u2 = ${'uid1'};
|
|
}
|
|
if( $a > 0 ) {
|
|
if( $pvr['used'] == 0 && !isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
|
//
|
|
$this->priemAddLog( $id, $b, $a, $u2, $u1,
|
|
'<font color^^^^#'.$prv['color2'].'>Туманный образ [8]</font>',
|
|
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u2]]['sex'] , NULL).'.'.$prv['effx'],
|
|
($btl->hodID + 1)
|
|
);
|
|
//
|
|
$at['p'][$a]['atack'][$j]['yron']['used'][] = array($j_id,$uid,$pvr['used']);
|
|
$at['p'][$a]['atack'][$j]['yron']['kill'][] = array($j_id,$uid,$pvr['kill']);
|
|
//
|
|
$at['p'][$a]['priems']['kill'][$uid][$j_id] = true;
|
|
}
|
|
}
|
|
//
|
|
// -- конец приема
|
|
return $at;
|
|
};
|
|
unset( $pr_used_this );
|
|
}else{
|
|
//Действие при клике
|
|
$this->addEffPr($pl,$id);
|
|
/*$prv['color2'] = '000000';
|
|
$prv['text'] = $btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
|
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
|
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
|
'<font color^^^^#'.$prv['color2'].'>Туманный образ [8]</font>',
|
|
$prv['text2'],
|
|
($btl->hodID + 0)
|
|
);*/
|
|
}
|
|
unset($pvr);
|
|
?>
|