|
|
@ -13,10 +13,10 @@ if($runden_gif1) {
|
|
|
|
if($runden_gif1 > $x) {
|
|
|
|
if($runden_gif1 > $x) {
|
|
|
|
$technick1_old = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$attacken_old_id1' LIMIT 1"));
|
|
|
|
$technick1_old = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$attacken_old_id1' LIMIT 1"));
|
|
|
|
|
|
|
|
|
|
|
|
$k_starke[1] = $k_starke[1] - $technick1_old[starke];
|
|
|
|
$k_starke[1] = $k_starke[1] - $technick1_old['starke'];
|
|
|
|
$k_speed[1] = $k_speed[1] - $technick1_old[speed];
|
|
|
|
$k_speed[1] = $k_speed[1] - $technick1_old['speed'];
|
|
|
|
$k_ver[1] = $k_ver[1] - $technick1_old[verteidigung];
|
|
|
|
$k_ver[1] = $k_ver[1] - $technick1_old['verteidigung'];
|
|
|
|
$k_hp[1] = $k_hp[1] - $technick1_old[hp];
|
|
|
|
$k_hp[1] = $k_hp[1] - $technick1_old['hp'];
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$runden_gif1 = "";
|
|
|
|
$runden_gif1 = "";
|
|
|
@ -26,9 +26,9 @@ if($runden_gif1) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($technick1[type] == 'gift') {
|
|
|
|
if($technick1['type'] == 'gift') {
|
|
|
|
|
|
|
|
|
|
|
|
$k_mp[0] = $k_mp[0] - $technick1[mp];
|
|
|
|
$k_mp[0] = $k_mp[0] - $technick1['mp'];
|
|
|
|
if($k_mp[0] < 0) {
|
|
|
|
if($k_mp[0] < 0) {
|
|
|
|
$schaden_2 = 'Keinen Schaden';
|
|
|
|
$schaden_2 = 'Keinen Schaden';
|
|
|
|
$schaden_1 = 'Schädigen fehlgeschlagen';
|
|
|
|
$schaden_1 = 'Schädigen fehlgeschlagen';
|
|
|
@ -38,14 +38,14 @@ $k_mp[0] = 0;
|
|
|
|
|
|
|
|
|
|
|
|
$schaden_1 = 'Schädigen';
|
|
|
|
$schaden_1 = 'Schädigen';
|
|
|
|
|
|
|
|
|
|
|
|
$runden_gif1 = $x+$technick1[runden];
|
|
|
|
$runden_gif1 = $x+$technick1['runden'];
|
|
|
|
$attacken_old_id1 = $technick1[id];
|
|
|
|
$attacken_old_id1 = $technick1['id'];
|
|
|
|
$runden_gif_technik1 = $x;
|
|
|
|
$runden_gif_technik1 = $x;
|
|
|
|
|
|
|
|
|
|
|
|
$k_starke[1] = $k_starke[1] - $technick1[starke];
|
|
|
|
$k_starke[1] = $k_starke[1] - $technick1['starke'];
|
|
|
|
$k_speed[1] = $k_speed[1] - $technick1[speed];
|
|
|
|
$k_speed[1] = $k_speed[1] - $technick1['speed'];
|
|
|
|
$k_ver[1] = $k_ver[1] - $technick1[verteidigung];
|
|
|
|
$k_ver[1] = $k_ver[1] - $technick1['verteidigung'];
|
|
|
|
$k_hp[1] = $k_hp[1] - $technick1[hp];
|
|
|
|
$k_hp[1] = $k_hp[1] - $technick1['hp'];
|
|
|
|
|
|
|
|
|
|
|
|
$aktion_AV1[$x] = "nein";
|
|
|
|
$aktion_AV1[$x] = "nein";
|
|
|
|
}}
|
|
|
|
}}
|
|
|
@ -57,10 +57,10 @@ if($runden_gif2) {
|
|
|
|
if($runden_gif2 > $x) {
|
|
|
|
if($runden_gif2 > $x) {
|
|
|
|
$technick2_old = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$attacken_old_id2' LIMIT 1"));
|
|
|
|
$technick2_old = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$attacken_old_id2' LIMIT 1"));
|
|
|
|
|
|
|
|
|
|
|
|
$k_starke[0] = $k_starke[0] - $technick2_old[starke];
|
|
|
|
$k_starke[0] = $k_starke[0] - $technick2_old['starke'];
|
|
|
|
$k_speed[0] = $k_speed[0] - $technick2_old[speed];
|
|
|
|
$k_speed[0] = $k_speed[0] - $technick2_old['speed'];
|
|
|
|
$k_ver[0] = $k_ver[0] - $technick2_old[verteidigung];
|
|
|
|
$k_ver[0] = $k_ver[0] - $technick2_old['verteidigung'];
|
|
|
|
$k_hp[0] = $k_hp[0] - $technick2_old[hp];
|
|
|
|
$k_hp[0] = $k_hp[0] - $technick2_old['hp'];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$runden_gif2 = '';
|
|
|
|
$runden_gif2 = '';
|
|
|
|
$runden_gif_technik2 = '';
|
|
|
|
$runden_gif_technik2 = '';
|
|
|
@ -69,9 +69,9 @@ if($runden_gif2) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($technick2[type] == 'gift') {
|
|
|
|
if($technick2['type'] == 'gift') {
|
|
|
|
#
|
|
|
|
|
|
|
|
$k_mp[1] = $k_mp[1] - $technick2[mp];
|
|
|
|
$k_mp[1] = $k_mp[1] - $technick2['mp'];
|
|
|
|
|
|
|
|
|
|
|
|
if($k_mp[1] < 0) {
|
|
|
|
if($k_mp[1] < 0) {
|
|
|
|
$schaden_1 = 'Keinen Schaden';
|
|
|
|
$schaden_1 = 'Keinen Schaden';
|
|
|
@ -82,14 +82,14 @@ $k_mp[1] = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$schaden_2 = 'Schädigen';
|
|
|
|
$schaden_2 = 'Schädigen';
|
|
|
|
$attacken_old_id2 = $technick2[id];
|
|
|
|
$attacken_old_id2 = $technick2['id'];
|
|
|
|
$runden_gif2 = $x+$technick2[runden];
|
|
|
|
$runden_gif2 = $x+$technick2['runden'];
|
|
|
|
$runden_gif_technik2 = $x;
|
|
|
|
$runden_gif_technik2 = $x;
|
|
|
|
|
|
|
|
|
|
|
|
$k_starke[0] = $k_starke[0] - $technick2[starke];
|
|
|
|
$k_starke[0] = $k_starke[0] - $technick2['starke'];
|
|
|
|
$k_speed[0] = $k_speed[0] - $technick2[speed];
|
|
|
|
$k_speed[0] = $k_speed[0] - $technick2['speed'];
|
|
|
|
$k_ver[0] = $k_ver[0] - $technick2[verteidigung];
|
|
|
|
$k_ver[0] = $k_ver[0] - $technick2['verteidigung'];
|
|
|
|
$k_hp[0] = $k_hp[0] - $technick2[hp];
|
|
|
|
$k_hp[0] = $k_hp[0] - $technick2['hp'];
|
|
|
|
|
|
|
|
|
|
|
|
$aktion_AV2[$x] = 'nein';
|
|
|
|
$aktion_AV2[$x] = 'nein';
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|