|
|
@ -41,72 +41,84 @@ if(!$aktion_AV1[$x]){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!$aktion_AV2[$x]) {
|
|
|
|
if(!$aktion_AV2[$x]) {
|
|
|
|
if($zufall_pl2 > $play1_ausweich) {
|
|
|
|
if($zufall_pl2 > $play1_ausweich) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$alt_hp = $k_hp[0];
|
|
|
|
$alt_hp = $k_hp[0];
|
|
|
|
|
|
|
|
|
|
|
|
$charsa2_def = $k_ver[0]+$technick1['verteidigung'];
|
|
|
|
$charsa2_def = $k_ver[0]+$technick1['verteidigung'];
|
|
|
|
$charsa2_4_def = ($k_ver[0]+$technick1['verteidigung']) / 1.1;
|
|
|
|
$charsa2_4_def = ($k_ver[0]+$technick1['verteidigung']) / 1.1;
|
|
|
|
|
|
|
|
|
|
|
|
if($charsa2_def <= 2) {
|
|
|
|
if($charsa2_def <= 2) {
|
|
|
|
$charsa2_def = 2;
|
|
|
|
$charsa2_def = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($charsa2_4_def < 1) {
|
|
|
|
if($charsa2_4_def < 1) {
|
|
|
|
$charsa2_4_def = 1;
|
|
|
|
$charsa2_4_def = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$charsa2_def = mt_rand($charsa2_4_def,$charsa2_def);
|
|
|
|
$charsa2_def = mt_rand($charsa2_4_def,$charsa2_def);
|
|
|
|
$charsa2_str = $k_starke[1]*1.2+$technick2['starke'];
|
|
|
|
$charsa2_str = $k_starke[1]*1.2+$technick2['starke'];
|
|
|
|
$charsa2_4_str = ($k_starke[1] *1.2 +$technick2['starke']) +1;
|
|
|
|
$charsa2_4_str = ($k_starke[1] *1.2 +$technick2['starke']) +1;
|
|
|
|
|
|
|
|
|
|
|
|
if($charsa1_str <= 2) {
|
|
|
|
if($charsa1_str <= 2) {
|
|
|
|
$charsa1_str = 2;
|
|
|
|
$charsa1_str = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($charsa2_4_str < 1) {
|
|
|
|
if($charsa2_4_str < 1) {
|
|
|
|
$charsa2_4_str = 1;
|
|
|
|
$charsa2_4_str = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$charsa2_str = mt_rand($charsa2_4_str,$charsa2_str);
|
|
|
|
$charsa2_str = mt_rand($charsa2_4_str,$charsa2_str);
|
|
|
|
|
|
|
|
|
|
|
|
$k_hp[0] = round(($k_hp[0] + $charsa2_def - $charsa2_str + mt_rand(1,20)));
|
|
|
|
$k_hp[0] = round(($k_hp[0] + $charsa2_def - $charsa2_str + mt_rand(1,20)));
|
|
|
|
$schaden_2 = $alt_hp - $k_hp[0];
|
|
|
|
$schaden_2 = $alt_hp - $k_hp[0];
|
|
|
|
|
|
|
|
|
|
|
|
if($alt_hp < $k_hp[0]) {
|
|
|
|
if($alt_hp < $k_hp[0]) {
|
|
|
|
$k_hp[0] = $alt_hp; $schaden_2 = 0;
|
|
|
|
$k_hp[0] = $alt_hp; $schaden_2 = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$schaden_2 = 'Keinen Schaden';
|
|
|
|
$schaden_2 = 'Keinen Schaden';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!$technick1['name']) {
|
|
|
|
if(!$technick1['name']) {
|
|
|
|
$technick1['name'] = 'Normaler Kick';
|
|
|
|
$technick1['name'] = 'Normaler Kick';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!$technick2['name']) {
|
|
|
|
if(!$technick2['name']) {
|
|
|
|
$technick2['name'] = 'Normaler Kick';
|
|
|
|
$technick2['name'] = 'Normaler Kick';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Nun kommt reborn an die reihe!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(isset($reborn_hp[0]) && $k_hp[0] <= 0) {
|
|
|
|
|
|
|
|
$k_hp[0] = $reborn_hp[0];
|
|
|
|
|
|
|
|
unset($reborn_hp[0]);
|
|
|
|
|
|
|
|
$schaden_1 .= '<br>Reborn!';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(isset($reborn_hp[1]) && $k_hp[1] <= 0) {
|
|
|
|
|
|
|
|
$k_hp[1] = $reborn_hp[1];
|
|
|
|
|
|
|
|
unset($reborn_hp[1]);
|
|
|
|
|
|
|
|
$schaden_2 .= '<br>Reborn!';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($k_hp[0]<0) {
|
|
|
|
if($k_hp[0]<0) {
|
|
|
|
$k_hp7[0] = 0;
|
|
|
|
$k_hp7[0] = 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$k_hp7[0] = $k_hp[0];
|
|
|
|
$k_hp7[0] = $k_hp[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($k_mp[0]<0) {
|
|
|
|
if($k_mp[0]<0) {
|
|
|
|
$k_mp7[0] = 0;
|
|
|
|
$k_mp7[0] = 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$k_mp7[0] = $k_mp[0];
|
|
|
|
$k_mp7[0] = $k_mp[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($k_hp[1]<0) {
|
|
|
|
if($k_hp[1]<0) {
|
|
|
|
$k_hp7[1] = 0;
|
|
|
|
$k_hp7[1] = 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$k_hp7[1] = $k_hp[1];
|
|
|
|
$k_hp7[1] = $k_hp[1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($k_mp[1]<0) {
|
|
|
|
if($k_mp[1]<0) {
|
|
|
|
$k_mp7[1] = 0;
|
|
|
|
$k_mp7[1] = 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$k_mp7[1] = $k_mp[1];
|
|
|
|
$k_mp7[1] = $k_mp[1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|