mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-30 17:44:22 +00:00
fix: hero can be killed even if unit not present anywhere on the map
#371
This commit is contained in:
@@ -86,10 +86,10 @@ class funct {
|
||||
if (!$killhero){
|
||||
$killhero=$database->FindHeroInOasis($get['uid']);
|
||||
}
|
||||
if ($killhero) {
|
||||
$database->KillMyHero($get['uid']);
|
||||
$error="&kc=1";
|
||||
}else $error="&e=1";
|
||||
|
||||
$database->KillMyHero($get['uid']);
|
||||
$error="&kc=1";
|
||||
|
||||
header("Location: admin.php?p=player&uid=".$get['uid'].$error);
|
||||
exit;
|
||||
case "reviveHero":
|
||||
|
||||
Reference in New Issue
Block a user