Файл: msarena/msarena_include.php
Строк: 23
<?php
if(isset($_GET['aoeHit'])&& $user['mstimeelixir'] < time())$msaoehit = num(1); else $msaoehit = NULL;
$msifuserlife = $user['time']-time();
if($user['mstimeshield'] < time()){
$msprocshield = num(0);
}else{
$msprocshield = $msarena_who['attack']*$user['msshield']/100;
}
$msbotsq = $msarena_who['attack']-$msprocshield-$user['protection'];
if($msbotsq < 0)$msbot = 0; else $msbot = $msbotsq;
$mstraning_attack = $user['attack']*$user['traning_attack']/100;
$msuseruron = $user['attack']+$mstraning_attack;
if($msuseruron == 0){
$msuser = $user['attack'];
}else{
if($msaoehit == 1){
$mshit = $msuseruron*2;
}else{
$mshit = $msuseruron;
}
if($user['mstimerage'] < time()){
$msrage = num(0);
}else{
$msproc = $user['attack']*$user['msrage']/100;
$msrage = $msproc;
}
if($user['mstimescroll'] > time())$msscrollsprocent = $user['scroll_procent']; else $msscrollsprocent = num(0);
$msuser = $mshit+$msrage+$msscrollsprocent;
}
$msuseri = $user['life']-$msbot;
$msuserhy = $msarena_who['life']-$msuser;
?>