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
+1 -1
View File
@@ -7533,7 +7533,7 @@ References:
function KillMyHero($id) {
list( $id ) = $this->escape_input( (int) $id );
$q = "UPDATE " . TB_PREFIX . "hero set dead = 1 where uid = " . $id . " AND dead = 0";
$q = "UPDATE " . TB_PREFIX . "hero set dead = 1, intraining = 0, inrevive = 0 where uid = " . $id . " AND dead = 0";
return mysqli_query( $this->dblink, $q );
}