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.

66 lines
1.6 KiB

14 years ago
<?php
/*
*
* @copyright (c) 2009 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
####################Majin SPIELER 1
if($technick1['type'] == "majin") {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
if($k_mp[0] < 0) {
$schaden_1 = "Majin Verwandlung fehlgeschlagen";
$aktion_AV1[$x] = "nein";
$k_mp[0] = 0;
} else {
$multiplikator = $technick1['starke'] / 10;
14 years ago
$k_starke[1] = $k_starke[1] * $multiplikator;
$k_speed[1] = $k_speed[1] * $multiplikator;
$k_ver[1] = $k_ver[1] * $multiplikator;
14 years ago
$alt_hp = $k_hp[1];
14 years ago
$k_hp[1] = round($k_hp[1] - ($k_starke[1] / 2));
$schaden_1 = "$technick1[name]";
$schaden_2 = $alt_hp - $k_hp[1];
14 years ago
if($alt_hp < $k_hp[1]) { $k_hp[1] = $alt_hp; $schaden_2 = 0; }
14 years ago
$aktion_AV1[$x] = "nein";
$aktion_AV2[$x] = "nein";
$aussetzten_runde = 1;
}}
14 years ago
####################Majin SPIELER 2
14 years ago
if($technick2['type'] == "majin") {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
if($k_mp[1] < 0) {
$schaden_2 = "Majin Verwandlung fehlgeschlagen";
$aktion_AV2[$x] = "nein";
$k_mp[1] = 0;
} else {
$multiplikator = $technick2['starke'] / 10;
$k_starke[0] = $k_starke[0] * $multiplikator;
$k_speed[0] = $k_speed[0] * $multiplikator;
$k_ver[0] = $k_ver[0] * $multiplikator;
14 years ago
$alt_hp = $k_hp[0];
14 years ago
$k_hp[0] = round($k_hp[0] - ($k_starke[0] / 2));
$schaden_2 = "$technick2[name]";
$schaden_1 = $alt_hp - $k_hp[0];
14 years ago
if($alt_hp < $k_hp[0]) { $k_hp[0] = $alt_hp; $schaden_1 = 0; }
14 years ago
$aktion_AV1[$x] = "nein";
$aktion_AV2[$x] = "nein";
$aussetzten_runde = 1;
}}
14 years ago
?>