fix: hero can be killed even if unit not present anywhere on the map

#371
This commit is contained in:
Martin Ambrus
2017-11-25 01:21:28 +01:00
parent b9cdba81fb
commit 571fb9019f
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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":