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.

100 lines
2.6 KiB

<?php
/*
*
* @copyright (c) 2009 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
################### Spieler 1
$haloo1 = 95;
if ($technick1['type'] == 'tausch') {
if ($k_mp[0] >= $technick1['mp']) {
if ($haloo1 > mt_rand(1, 100)) {
$k_starke_alt[0] = $k_starke[0];
$k_speed_alt[0] = $k_speed[0];
$k_ver_alt[0] = $k_ver[0];
$k_ausdauer_alt[0] = $k_ausdauer[0];
$k_glueck_alt[0] = $k_glueck[0];
$k_hp_alt[0] = $k_hp[0];
$k_starke_alt[1] = $k_starke[1];
$k_speed_alt[1] = $k_speed[1];
$k_ver_alt[1] = $k_ver[1];
$k_ausdauer_alt[1] = $k_ausdauer[1];
$k_glueck_alt[1] = $k_glueck[1];
$k_hp_alt[1] = $k_hp[1];
$k_starke[0] = $k_starke_alt[1];
$k_speed[0] = $k_speed_alt[1];
$k_ver[0] = $k_ver_alt[1];
$k_ausdauer[0] = $k_ausdauer_alt[1];
$k_glueck[0] = $k_glueck_alt[1];
$k_hp[0] = $k_hp_alt[1];
$k_starke[1] = $k_starke_alt[0];
$k_speed[1] = $k_speed_alt[0];
$k_ver[1] = $k_ver_alt[0];
$k_ausdauer[1] = $k_ausdauer_alt[0];
$k_glueck[1] = $k_glueck_alt[0];
$k_hp[1] = $k_hp_alt[0];
} else {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
$schaden_2 = 'Keinen Schaden';
$schaden_1 = 'K&ouml;rpertausch';
}
} else {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
$schaden_2 = 'Keinen Schaden';
$schaden_1 = 'K&ouml;rpertausch fehlgeschlagen';
}
$aktion_AV1[$x] = 'nein';
}
################### Spieler 2
if ($technick2['type'] == 'tausch') {
if ($k_mp[1] >= $technick2['mp']) {
if ($haloo1 > mt_rand(1, 100)) {
$k_starke_alt[0] = $k_starke[0];
$k_speed_alt[0] = $k_speed[0];
$k_ver_alt[0] = $k_ver[0];
$k_ausdauer_alt[0] = $k_ausdauer[0];
$k_glueck_alt[0] = $k_glueck[0];
$k_hp_alt[0] = $k_hp[0];
$k_starke_alt[1] = $k_starke[1];
$k_speed_alt[1] = $k_speed[1];
$k_ver_alt[1] = $k_ver[1];
$k_ausdauer_alt[1] = $k_ausdauer[1];
$k_glueck_alt[1] = $k_glueck[1];
$k_hp_alt[1] = $k_hp[1];
$k_starke[0] = $k_starke_alt[1];
$k_speed[0] = $k_speed_alt[1];
$k_ver[0] = $k_ver_alt[1];
$k_ausdauer[0] = $k_ausdauer_alt[1];
$k_glueck[0] = $k_glueck_alt[1];
$k_hp[0] = $k_hp_alt[1];
$k_starke[1] = $k_starke_alt[0];
$k_speed[1] = $k_speed_alt[0];
$k_ver[1] = $k_ver_alt[0];
$k_ausdauer[1] = $k_ausdauer_alt[0];
$k_glueck[1] = $k_glueck_alt[0];
$k_hp[1] = $k_hp_alt[0];
} else {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
$schaden_1 = 'Keinen Schaden';
$schaden_2 = 'K&ouml;rpertausch';
}
} else {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
$schaden_1 = 'Keinen Schaden';
$schaden_2 = 'K&ouml;rpertausch fehlgeschlagen';
}
$aktion_AV2[$x] = 'nein';
}