Fixed #125
Fixed Lose2 now the same as in normal fights (mp won't be set to 20%) Fixed hpmp and heals properlymain
parent
025f7cdbc0
commit
5b9834139b
@ -1,44 +1,51 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* @copyright (c) 2010 animegame.eu
|
* @copyright (c) 2009 animegame.eu
|
||||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
####################KAIOKEN-LOSE SPIELER 1
|
####################KAIOKEN-LOSE SPIELER 1
|
||||||
|
|
||||||
if($technick1[type] == "lose2") {
|
if($technick1['type'] == 'lose2') {
|
||||||
$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_1 = "Schwächen fehlgeschlagen";
|
$schaden_1 = 'Schwächen fehlgeschlagen';
|
||||||
$k_mp[0] = 0;
|
$k_mp[0] = 0;
|
||||||
} 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] / 100) * 20;
|
$k_mp[1] -= $k_mp2[1] * 0.8;
|
||||||
} else {
|
if($k_mp[1] < 0) {
|
||||||
$schaden_1 = "Schwächen fehlgeschlagen";
|
$k_mp[1] = 0;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
$aktion_AV1[$x] = "nein";
|
$schaden_1 = 'Schwächen fehlgeschlagen';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$aktion_AV1[$x] = 'nein';
|
||||||
}
|
}
|
||||||
####################KAIOKEN-LOSE SPIELER 2
|
####################KAIOKEN-LOSE SPIELER 2
|
||||||
|
|
||||||
if($technick2[type] == "lose2") {
|
if($technick2['type'] == 'lose2') {
|
||||||
$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_2 = "Schwächen fehlgeschlagen";
|
$schaden_2 = 'Schwächen fehlgeschlagen';
|
||||||
$k_mp[1] = 0;
|
$k_mp[1] = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
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] / 100) * 20;
|
$k_mp[0] -= $k_mp1[1] * 0.8;
|
||||||
} else {
|
if($k_mp[0] < 0) {
|
||||||
$schaden_2 = "Schwächen fehlgeschlagen";
|
$k_mp[0] = 0;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$schaden_2 = 'Schwächen fehlgeschlagen';
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$aktion_AV2[$x] = "nein";
|
$aktion_AV2[$x] = 'nein';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in new issue