|
|
|
@ -7,40 +7,45 @@
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
################### Spieler 1
|
|
|
|
|
|
|
|
|
|
if ($technick1['type'] == 'reborn') {
|
|
|
|
|
$k_mp[0] = $k_mp[0] - $technick1['mp'];
|
|
|
|
|
if ($k_mp[0] >= 0) {
|
|
|
|
|
if($k_hp[0] <= 0) {
|
|
|
|
|
$k_hp[0] = ($k_hp1[1] / 100) * $technick1['hp'];
|
|
|
|
|
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
|
|
|
|
|
################### Spieler 1
|
|
|
|
|
if ($technick1['type'] == 'reborn') {
|
|
|
|
|
$k_mp[0] = $k_mp[0] - $technick1['mp'];
|
|
|
|
|
if ($k_mp[0] >= 0) {
|
|
|
|
|
$reborn_hp[0] = ($k_hp1[1] / 100) * $technick1['hp'];
|
|
|
|
|
$schaden_1 = 'Reborn!';
|
|
|
|
|
} else {
|
|
|
|
|
$schaden_1 = 'Technik fehlgeschlagen';
|
|
|
|
|
$k_mp[0] = 0;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$schaden_1 = 'Technik fehlgeschlagen';
|
|
|
|
|
$k_mp[0] = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$aktion_AV1[$x] = 'nein';
|
|
|
|
|
}
|
|
|
|
|
$aktion_AV1[$x] = 'nein';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
################### Spieler 2
|
|
|
|
|
################### Spieler 2
|
|
|
|
|
|
|
|
|
|
if ($technick2['type'] == 'reborn') {
|
|
|
|
|
$k_mp[1] = $k_mp[1] - $technick2['mp'];
|
|
|
|
|
if ($k_mp[1] >= 0) {
|
|
|
|
|
if($k_hp[1] <= 0) {
|
|
|
|
|
$k_hp[1] = ($k_hp2[1] / 100) * $technick2['hp'];
|
|
|
|
|
if ($technick2['type'] == 'reborn') {
|
|
|
|
|
$k_mp[1] = $k_mp[1] - $technick2['mp'];
|
|
|
|
|
if ($k_mp[1] >= 0) {
|
|
|
|
|
$reborn_hp[1] = ($k_hp2[1] / 100) * $technick2['hp'];
|
|
|
|
|
$schaden_2 = 'Reborn!';
|
|
|
|
|
} else {
|
|
|
|
|
$schaden_2 = 'Technik fehlgeschlagen';
|
|
|
|
|
$k_mp[0] = 0;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$schaden_2 = 'Technik fehlgeschlagen';
|
|
|
|
|
$k_mp[0] = 0;
|
|
|
|
|
|
|
|
|
|
$aktion_AV2[$x] = 'nein';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(isset($reborn_hp[0]) && $k_hp[0] <= 0) {
|
|
|
|
|
$k_hp[0] = $reborn_hp[0];
|
|
|
|
|
unset($reborn_hp[0]);
|
|
|
|
|
$schaden_1 .= '<br>Reborn!';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$aktion_AV2[$x] = 'nein';
|
|
|
|
|
if(isset($reborn_hp[1]) && $k_hp[0] <= 0) {
|
|
|
|
|
$k_hp[0] = $reborn_hp[1];
|
|
|
|
|
unset($reborn_hp[1]);
|
|
|
|
|
$schaden_2 .= '<br>Reborn!';
|
|
|
|
|
}
|
|
|
|
|