|
|
@ -16,7 +16,7 @@ if($technick1['type'] == 'lose2') {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if($technick1['starke'] >= mt_rand(1,100)) {
|
|
|
|
if($technick1['starke'] >= mt_rand(1,100)) {
|
|
|
|
$schaden_1 = 'Schwächen';
|
|
|
|
$schaden_1 = 'Schwächen';
|
|
|
|
$k_mp[1] -= $k_mp2[1] * 0.8;
|
|
|
|
$k_mp[1] -= $k_mp2[1] * ($technick1['speed'] / 100);
|
|
|
|
if($k_mp[1] < 0) {
|
|
|
|
if($k_mp[1] < 0) {
|
|
|
|
$k_mp[1] = 0;
|
|
|
|
$k_mp[1] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -37,7 +37,7 @@ if($technick2['type'] == 'lose2') {
|
|
|
|
|
|
|
|
|
|
|
|
if($technick2['starke'] >= mt_rand(1,100)) {
|
|
|
|
if($technick2['starke'] >= mt_rand(1,100)) {
|
|
|
|
$schaden_2 = 'Schwächen';
|
|
|
|
$schaden_2 = 'Schwächen';
|
|
|
|
$k_mp[0] -= $k_mp1[1] * 0.8;
|
|
|
|
$k_mp[0] -= $k_mp1[1] * ($technick2['speed'] / 100);
|
|
|
|
if($k_mp[0] < 0) {
|
|
|
|
if($k_mp[0] < 0) {
|
|
|
|
$k_mp[0] = 0;
|
|
|
|
$k_mp[0] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|