From 0b8d8144a396301559563e50c58853447e533fe4 Mon Sep 17 00:00:00 2001 From: hecht Date: Tue, 19 Dec 2017 20:30:16 +0000 Subject: [PATCH] fixed runden attacke --- ag/include/kampf/runde.php | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/ag/include/kampf/runde.php b/ag/include/kampf/runde.php index 8b67fd1..39c712d 100644 --- a/ag/include/kampf/runde.php +++ b/ag/include/kampf/runde.php @@ -14,6 +14,11 @@ if($technick1['type'] == 'runde') { $schaden_1 = $technick1['name'] . ' fehlgeschlagen'; $aktion_AV1[$x] = 'nein'; $k_mp[0] = 0; + // set the tech stats to 0 + $technick1['starke'] = 0; + $technick1['speed'] = 0; + $technick1['verteidigung'] = 0; + $play1_ausweich = 0; } else { if($runden_type1 < $technick1['hp']-1) { /////////HP wert sagt an wieviel runden die technik dauert @@ -30,11 +35,17 @@ if($technick1['type'] == 'runde') { } if($technick2['type'] == 'runde') { -$k_mp[1] = $k_mp[1] - $technick2['mp']; -if($k_mp[1] < 0) { -$schaden_2 = $technick2['name'] . ' fehlgeschlagen'; -$aktion_AV2[$x] = 'nein'; -$k_mp[1] = 0; + $k_mp[1] = $k_mp[1] - $technick2['mp']; + + if($k_mp[1] < 0) { + $schaden_2 = $technick2['name'] . ' fehlgeschlagen'; + $aktion_AV2[$x] = 'nein'; + $k_mp[1] = 0; + // set the tech stats to 0 + $technick2['starke'] = 0; + $technick2['speed'] = 0; + $technick2['verteidigung'] = 0; + $play2_ausweich = 0; } else { if($runden_type2 < $technick2['hp']-1) { /////////HP wert sagt an wieviel runden die technik dauert @@ -48,4 +59,4 @@ $k_mp[1] = 0; } } } -?> \ No newline at end of file +?>