hero update

This commit is contained in:
Shadow
2014-03-18 07:35:37 +02:00
parent 6e62f2232f
commit 7cfa82a18d
24 changed files with 652 additions and 10 deletions
+2 -2
View File
@@ -704,9 +704,9 @@ header("Location: banned.php");
}
}
public function Hero($uid) {
public function Hero($uid,$all=0) {
global $database;
$heroarray = $database->getHero($uid);
$heroarray = $database->getHero($uid,$all);
$herodata = $GLOBALS["h".$heroarray[0]['unit']];
$h_atk = $herodata['atk'] + 5 * floor($heroarray[0]['attack'] * $herodata['atkp'] / 5);