mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 07:06:06 +00:00
hero update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user