2022-06-06 21:30:34 +00:00
|
|
|
|
<?
|
|
|
|
|
if(!defined('GAME'))
|
|
|
|
|
{
|
|
|
|
|
die();
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$uen = $u->info['enemy']; //на кого используем прием
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
|
|
|
|
if(isset($_POST['useon']))
|
|
|
|
|
{
|
|
|
|
|
$ue = $this->ue;
|
|
|
|
|
if(isset($ue['id']))
|
|
|
|
|
{
|
|
|
|
|
$uen = $ue['id'];
|
|
|
|
|
}else{
|
|
|
|
|
$uen = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if($pl['id']==9999){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//Магическое исцеление
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}elseif($pl['id']==181){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//лечение [7]
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$hpadd = 183;
|
|
|
|
|
}elseif($pl['id']==182){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//лечение [8]
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$hpadd = 219;
|
|
|
|
|
}elseif($pl['id']==183){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//лечение [9]
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$hpadd = 263;
|
|
|
|
|
}elseif($pl['id']==184){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//лечение [10]
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$hpadd = 316;
|
|
|
|
|
}elseif($pl['id']==185){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//лечение [11]
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$hpadd = 380;
|
|
|
|
|
}
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//добавляем НР к цели
|
2022-06-06 21:30:34 +00:00
|
|
|
|
if($hpadd>0)
|
|
|
|
|
{
|
|
|
|
|
if($uen>0 && $btl->stats[$btl->uids[$uen]]['hpNow']>0)
|
|
|
|
|
{
|
|
|
|
|
$this->magicRegen($ue,$hpadd,5,$pl,$eff);
|
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$cup = true; //не удалось использовать прием
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//отнимаем НР у противника
|
2022-06-06 21:30:34 +00:00
|
|
|
|
if($hpmin>0)
|
|
|
|
|
{
|
|
|
|
|
if($uen>0 && $btl->stats[$btl->uids[$uen]]['hpNow']>0)
|
|
|
|
|
{
|
|
|
|
|
$this->magicAtack($ue,$hpmin,5,$pl,$eff);
|
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$cup = true; //не удалось использовать прием
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|