= $speeds_char2) { if ($technick1['type'] == 'hp') { $k_mp[0] = $k_mp[0] - $technick1['mp']; if ($k_mp[0] < 0) { $k_mp[0] = 0; } else { $k_hp[0] = $k_hp[0] + $technick1['hp']; if ($k_hp1[1] < $k_hp[0]) { $k_hp[0] = $k_hp1[1]; } $schaden_2 = 'Keinen Schaden'; $schaden_1 = '+ ' . $technick1['hp'] . ' HP'; } $aktion_AV1[$x] = 'nein'; } } else { ####################KAMPF HP SPIELER 2 if ($technick2['type'] == 'hp') { $k_mp[1] = $k_mp[1] - $technick2['mp']; if ($k_mp[1] < 0) { $k_mp[1] = 0; } else { $k_hp[1] = $k_hp[1] + $technick2['hp']; if ($k_hp2[1] < $k_hp[1]) { $k_hp[1] = $k_hp2[1]; } $schaden_1 = 'Keinen Schaden'; $schaden_2 = '+ '.$technick2['hp'].' HP'; } $aktion_AV2[$x] = 'nein'; } } ?>