2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' ))
{
die ();
}
$krituetli = true ;
if ( isset ( $hod ))
{
if ( $pr [ 'id' ] == 73 )
{
2023-01-10 16:29:32 +00:00
//олединение [5]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 6 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 21 )
{
2023-01-10 16:29:32 +00:00
//олединение [4]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 3 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 74 )
{
2023-01-10 16:29:32 +00:00
//олединение [6]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 7 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 75 )
{
2023-01-10 16:29:32 +00:00
//олединение [7]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 8 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 76 )
{
2023-01-10 16:29:32 +00:00
//олединение [8]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 10 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 77 )
{
2023-01-10 16:29:32 +00:00
//олединение [9]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 12 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 78 )
{
2023-01-10 16:29:32 +00:00
//олединение [10]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 14 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 79 )
{
2023-01-10 16:29:32 +00:00
//олединение [11]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 16 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 22 )
{
2023-01-10 16:29:32 +00:00
//отравление [6]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 6.1 ;
$minmp = 3 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 80 )
{
2023-01-10 16:29:32 +00:00
//отравление [7]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 7.3 ;
$minmp = 5 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 81 )
{
2023-01-10 16:29:32 +00:00
//отравление [8]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 8.8 ;
$minmp = 7 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 82 )
{
2023-01-10 16:29:32 +00:00
//отравление [9]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 10.5 ;
$minmp = 9 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 83 )
{
2023-01-10 16:29:32 +00:00
//отравление [10]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 12.7 ;
$minmp = 11 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 84 )
{
2023-01-10 16:29:32 +00:00
//отравление [11]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 15.2 ;
$minmp = 12 ;
if ( $eff [ 'x' ] > 1 )
{
$hpmin += ceil ( $hpmin / 100 * ( 5 * $eff [ 'x' ]));
}
} elseif ( $pr [ 'id' ] == 23 )
{
2023-01-10 16:29:32 +00:00
//ядовитое облако [8]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpmin = 13 ;
} elseif ( $pr [ 'id' ] == 32 )
{
2023-01-10 16:29:32 +00:00
//Знак воды
2022-06-06 21:30:34 +00:00
$minmp = ( int ) $u -> info [ 'level' ];
} elseif ( $pr [ 'id' ] == 36 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [5]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 7.5 ;
$mpmin = 4 ;
}
elseif ( $pr [ 'id' ] == 85 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [6]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 9 ;
$mpmin = 6 ;
}
elseif ( $pr [ 'id' ] == 86 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [7]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 11 ;
$mpmin = 8 ;
}
elseif ( $pr [ 'id' ] == 87 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [8]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 13 ;
$mpmin = 10 ;
}
elseif ( $pr [ 'id' ] == 88 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [9]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 16 ;
$mpmin = 12 ;
}
elseif ( $pr [ 'id' ] == 89 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [10]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 19 ;
$mpmin = 14 ;
}
elseif ( $pr [ 'id' ] == 90 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [11]
2022-06-06 21:30:34 +00:00
$krituetli = false ;
$hpadd = 23 ;
$mpmin = 16 ;
}
2023-01-10 16:29:32 +00:00
//добавляем Н Р к цели
2022-06-06 21:30:34 +00:00
if ( $hpadd > 0 )
{
if ( $btl -> users [ $btl -> uids [ $eff [ 'uid' ]]][ 'hpNow' ] > 0 )
{
$this -> magicRegen ( $ue , $hpadd , 3 , $pr , $eff , 1 , 0 , $krituetli );
} else {
2023-01-10 16:29:32 +00:00
$cup = true ; //не удалось использовать прием
2022-06-06 21:30:34 +00:00
}
}
if ( $hpmin > 0 )
{
$re = $this -> magicAtack ( $ue , $hpmin , 3 , $pr , $eff , 1 , 0 , 0 , 0 , $krituetli );
}
if ( isset ( $minmp ))
{
2023-01-10 16:29:32 +00:00
//отнимаем М Р у кастера
2022-06-06 21:30:34 +00:00
if ( $this -> minMana ( $eff [ 'user_use' ], $minmp , 3 ) == false )
{
2023-01-10 16:29:32 +00:00
//снимаем эффект, мана закончилась
2022-06-06 21:30:34 +00:00
$btl -> delPriem ( $eff , $btl -> users [ $btl -> uids [ $eff [ 'uid' ]]], 2 );
}
}
} else {
2023-01-10 16:29:32 +00:00
$uen = $u -> info [ 'enemy' ]; //на кого используем прием
2022-06-06 21:30:34 +00:00
if ( isset ( $_POST [ 'useon' ]) && $_POST [ 'useon' ] != '' && $_POST [ 'useon' ] != 'none' )
{
$ue = $this -> ue ;
if ( isset ( $ue [ 'id' ]))
{
$uen = $ue [ 'id' ];
} else {
$uen = 0 ;
}
}
if ( $pl [ 'id' ] == 267 ) {
2023-01-10 16:29:32 +00:00
//Кристаллизация
2022-06-06 21:30:34 +00:00
$hpmin = $btl -> stats [ $btl -> uids [ $uen ]][ 's1' ];
if ( $hpmin > $u -> info [ 'level' ] * 10 ) {
$hpmin = $u -> info [ 'level' ] * 10 ;
}
$this -> magicAtack ( $btl -> users [ $btl -> uids [ $uen ]], $hpmin , 3 , $pl , $eff , 0 , 0 , 0 , 1 , $krituetli );
unset ( $hpmin );
2023-01-10 16:29:32 +00:00
$this -> addPriem ( $uen , 268 , '|add_s1=-' . $btl -> stats [ $btl -> uids [ $u -> info [ 'id' ]]][ 'mg3' ] . '|add_s2=-' . $btl -> stats [ $btl -> uids [ $u -> info [ 'id' ]]][ 'mg3' ] . '' , 1 , 77 , 4 , $u -> info [ 'id' ], 1 , 'кристаллизация' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 265 ) {
2023-01-10 16:29:32 +00:00
//олединение: разбить
$mg = mysql_fetch_array ( mysql_query ( 'SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "' . $btl -> users [ $btl -> uids [ $uen ]][ 'id' ] . '" AND `bj` = "оледенение" AND `user_use` = "' . $u -> info [ 'id' ] . '" ORDER BY `id` DESC LIMIT 1' ));
2022-06-06 21:30:34 +00:00
if ( isset ( $mg [ 'id' ])) {
$hpmin = 21 ;
if ( $mg [ 'v2' ] == 73 ) {
$hpmin = 23 ;
} elseif ( $mg [ 'v2' ] == 74 ) {
$hpmin = 27 ;
} elseif ( $mg [ 'v2' ] == 75 ) {
$hpmin = 33 ;
} elseif ( $mg [ 'v2' ] == 76 ) {
$hpmin = 39 ;
} elseif ( $mg [ 'v2' ] == 77 ) {
$hpmin = 47 ;
} elseif ( $mg [ 'v2' ] == 78 ) {
$hpmin = 57 ;
} elseif ( $mg [ 'v2' ] == 79 ) {
$hpmin = 68 ;
}
$hpmin += round ( $hpmin / 100 * ( 50 * $mg [ 'x' ]));
2023-01-10 16:29:32 +00:00
echo '<font color=red><b>Прием "' . $pl [ 'name' ] . '" успешно использован.</b></font>' ;
2022-06-06 21:30:34 +00:00
mysql_query ( 'DELETE FROM `eff_users` WHERE `id` = "' . $mg [ 'id' ] . '" LIMIT 1' );
} else {
2023-01-10 16:29:32 +00:00
echo '<font color=red><b>Н а цели нет приема "Оледенение"</b></font>' ;
2022-06-06 21:30:34 +00:00
$cup = true ;
}
} elseif ( $pl [ 'id' ] == 73 )
{
2023-01-10 16:29:32 +00:00
//олединение [5]
2022-06-06 21:30:34 +00:00
$hpmin = 23 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 21 )
{
2023-01-10 16:29:32 +00:00
//олединение [4]
2022-06-06 21:30:34 +00:00
$hpmin = 21 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 74 )
{
2023-01-10 16:29:32 +00:00
//олединение [6]
2022-06-06 21:30:34 +00:00
$hpmin = 27 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 75 )
{
2023-01-10 16:29:32 +00:00
//олединение [7]
2022-06-06 21:30:34 +00:00
$hpmin = 33 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 76 )
{
2023-01-10 16:29:32 +00:00
//олединение [8]
2022-06-06 21:30:34 +00:00
$hpmin = 39 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 77 )
{
2023-01-10 16:29:32 +00:00
//олединение [9]
2022-06-06 21:30:34 +00:00
$hpmin = 47 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 78 )
{
2023-01-10 16:29:32 +00:00
//олединение [10]
2022-06-06 21:30:34 +00:00
$hpmin = 57 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 79 )
{
2023-01-10 16:29:32 +00:00
//олединение [11]
2022-06-06 21:30:34 +00:00
$hpmin = 68 ;
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 4 , $u -> info [ 'id' ], 3 , 'оледенение' );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 22 )
{
2023-01-10 16:29:32 +00:00
//отравление [6]
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 10 , $u -> info [ 'id' ], 1 , 'отравление' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::Отравление[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 80 )
{
2023-01-10 16:29:32 +00:00
//отравление [7]
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 10 , $u -> info [ 'id' ], 1 , 'отравление' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::Отравление[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 81 )
{
2023-01-10 16:29:32 +00:00
//отравление [8]
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 10 , $u -> info [ 'id' ], 1 , 'отравление' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::Отравление[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 82 )
{
2023-01-10 16:29:32 +00:00
//отравление [9]
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 10 , $u -> info [ 'id' ], 1 , 'отравление' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::Отравление[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 83 )
{
2023-01-10 16:29:32 +00:00
//отравление [10]
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 10 , $u -> info [ 'id' ], 1 , 'отравление' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::Отравление[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 84 )
{
2023-01-10 16:29:32 +00:00
//отравление [11]
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 10 , $u -> info [ 'id' ], 1 , 'отравление' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::Отравление[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 23 )
{
2023-01-10 16:29:32 +00:00
//Ядовитое Облако [8] 3-5 целей
2022-06-06 21:30:34 +00:00
$rx = rand ( 20 , 40 );
$rx = floor ( $rx / 10 );
$xx = 0 ;
$ix = 0 ;
while ( $ix < count ( $btl -> users ))
{
if ( $btl -> stats [ $ix ][ 'hpNow' ] > 0 && $btl -> users [ $ix ][ 'team' ] != $u -> info [ 'team' ] && $xx < $rx && $uen != $btl -> users [ $ix ][ 'id' ])
{
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $btl -> users [ $ix ][ 'id' ], $pl [ 'id' ], '' , 0 , 77 , 5 , $u -> info [ 'id' ], 1 , 'ядовитоеоблако' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::ЯдовитоеОблако[xX]]' ;
2022-06-06 21:30:34 +00:00
}
$xx ++ ;
}
$ix ++ ;
}
2023-01-10 16:29:32 +00:00
$re = $this -> addPriem ( $uen , $pl [ 'id' ], '' , 0 , 77 , 5 , $u -> info [ 'id' ], 1 , 'ядовитоеоблако' , 3 , 1 );
2022-06-06 21:30:34 +00:00
if ( $re == false )
{
2023-01-10 16:29:32 +00:00
echo '[Er::ЯдовитоеОблако[xX]]' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( $pl [ 'id' ] == 32 )
{
2023-01-10 16:29:32 +00:00
//Знак воды
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , - 2 , $u -> info [ 'id' ], 1 , 'знакводы' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 36 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [5]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 85 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [6]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 86 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [7]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 87 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [8]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 88 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [9]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 89 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [10]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 90 )
{
2023-01-10 16:29:32 +00:00
//Регенерация [11]
$re = $this -> addPriem ( $u -> info [ 'id' ], $pl [ 'id' ], - 1 , 0 , 77 , 8 , $u -> info [ 'id' ], 1 , 'регенерация' , 3 , 1 );
2022-06-06 21:30:34 +00:00
} elseif ( $pl [ 'id' ] == 164 )
{
2023-01-10 16:29:32 +00:00
//Острая грань
2022-06-06 21:30:34 +00:00
if ( $uen > 0 && $btl -> stats [ $btl -> uids [ $uen ]][ 'hpNow' ] > 0 )
{
$re = $this -> magicAtack ( $ue , 150 , 3 , $pl , $eff , 0 , 0 , 1 );
} else {
2023-01-10 16:29:32 +00:00
$cup = true ; //не удалось использовать прием
2022-06-06 21:30:34 +00:00
}
}
elseif ( $pl [ 'id' ] == 174 )
{
2023-01-10 16:29:32 +00:00
//Ледяное сердце
2022-06-06 21:30:34 +00:00
$upd = $this -> rezadEff ( $u -> info [ 'id' ], 'wis_water' );
if ( $upd == false )
{
$cup = true ;
} else {
$vLog = 'time1=' . time () . '||s1=' . $u -> info [ 'sex' ] . '||t1=' . $u -> info [ 'team' ] . '||login1=' . $u -> info [ 'login' ];
$mas1 = array ( 'time' => time (), 'battle' => $btl -> info [ 'id' ], 'id_hod' => ( $btl -> hodID + 1 ), 'text' => '' , 'vars' => $vLog , 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
2023-01-10 16:29:32 +00:00
$mas1 [ 'text' ] = '{tm1} {u1} {1x16x0} прием "<b>' . $pl [ 'name' ] . '</b>". <small>(Сняты задержки на магию Воды)</small>' ;
2022-06-06 21:30:34 +00:00
$btl -> add_log ( $mas1 );
}
unset ( $upd );
}
elseif ( $pl [ 'id' ] == 205 ) {
2023-01-10 16:29:32 +00:00
//Чистота Воды
2022-06-06 21:30:34 +00:00
$i = 0 ;
$add_where = '' ;
while ( $i < count ( $btl -> users )){
if ( $btl -> users [ $i ][ 'team' ] == $btl -> users [ $btl -> uids [ $u -> info [ 'id' ]]][ 'team' ]){
$add_where .= ' and `user_use`!="' . $btl -> users [ $i ][ 'id' ] . '"' ;
}
$i ++ ;
}
$dell = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `eff_users` WHERE `user_use`!= "" and `delete`="0" and `uid`="' . $u -> info [ 'id' ] . '" and `v1`="priem" ' . $add_where . ' LIMIT 1' ));
if ( $dell ){
$dell [ 'priem' ][ 'id' ] = $dell [ 'id' ];
$btl -> delPriem ( $dell , $u -> info , 99 , false , $pl [ 'name' ]);
}
}
if ( $hpmin > 0 )
{
2023-01-10 16:29:32 +00:00
//отнимаем Н Р у противника
2022-06-06 21:30:34 +00:00
if ( isset ( $hpmin ) && $hpmin > 0 && $uen > 0 && $btl -> stats [ $btl -> uids [ $uen ]][ 'hpNow' ] > 0 )
{
$re = $this -> magicAtack ( $btl -> users [ $btl -> uids [ $uen ]], $hpmin , 3 , $pl , $eff , 0 , 0 , 0 , 0 , $krituetli );
} else {
2023-01-10 16:29:32 +00:00
$cup = true ; //не удалось использовать прием
2022-06-06 21:30:34 +00:00
}
}
}
?>