You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.2 KiB

14 years ago
<?php
/*
*
* @copyright (c) 2009 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
####################GIFT SPIELER 1
if($runden_gif1) {
if($runden_gif1 > $x) {
$technick1_old = mysqli_fetch_array(db_query("SELECT * FROM attacken WHERE id='$attacken_old_id1' LIMIT 1"));
14 years ago
$k_starke[1] = $k_starke[1] - $technick1_old['starke'];
$k_speed[1] = $k_speed[1] - $technick1_old['speed'];
$k_ver[1] = $k_ver[1] - $technick1_old['verteidigung'];
$k_hp[1] = $k_hp[1] - $technick1_old['hp'];
14 years ago
} else {
$runden_gif1 = '';
$runden_gif_technik1 = '';
14 years ago
}
}
if($technick1['type'] == 'gift') {
14 years ago
$k_mp[0] = $k_mp[0] - $technick1['mp'];
14 years ago
if($k_mp[0] < 0) {
$schaden_2 = 'Keinen Schaden';
$schaden_1 = 'Sch&auml;digen fehlgeschlagen';
$aktion_AV1[$x] = 'nein';
14 years ago
$k_mp[0] = 0;
} else {
$schaden_1 = 'Sch&auml;digen';
14 years ago
$runden_gif1 = $x+$technick1['runden'];
$attacken_old_id1 = $technick1['id'];
14 years ago
$runden_gif_technik1 = $x;
$k_starke[1] = $k_starke[1] - $technick1['starke'];
$k_speed[1] = $k_speed[1] - $technick1['speed'];
$k_ver[1] = $k_ver[1] - $technick1['verteidigung'];
$k_hp[1] = $k_hp[1] - $technick1['hp'];
14 years ago
$aktion_AV1[$x] = 'nein';
14 years ago
}}
####################GIFT SPIELER 2
if($runden_gif2) {
if($runden_gif2 > $x) {
$technick2_old = mysqli_fetch_array(db_query("SELECT * FROM attacken WHERE id='$attacken_old_id2' LIMIT 1"));
14 years ago
$k_starke[0] = $k_starke[0] - $technick2_old['starke'];
$k_speed[0] = $k_speed[0] - $technick2_old['speed'];
$k_ver[0] = $k_ver[0] - $technick2_old['verteidigung'];
$k_hp[0] = $k_hp[0] - $technick2_old['hp'];
14 years ago
} else {
$runden_gif2 = '';
$runden_gif_technik2 = '';
14 years ago
}
}
if($technick2['type'] == 'gift') {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
14 years ago
if($k_mp[1] < 0) {
$schaden_1 = 'Keinen Schaden';
$schaden_2 = 'Sch&auml;digen fehlgeschlagen';
$aktion_AV2[$x] = 'nein';
14 years ago
$k_mp[1] = 0;
} else {
$schaden_2 = 'Sch&auml;digen';
$attacken_old_id2 = $technick2['id'];
$runden_gif2 = $x+$technick2['runden'];
14 years ago
$runden_gif_technik2 = $x;
$k_starke[0] = $k_starke[0] - $technick2['starke'];
$k_speed[0] = $k_speed[0] - $technick2['speed'];
$k_ver[0] = $k_ver[0] - $technick2['verteidigung'];
$k_hp[0] = $k_hp[0] - $technick2['hp'];
14 years ago
$aktion_AV2[$x] = 'nein';
14 years ago
}}
?>