Force Entity health change on respawn

This commit is contained in:
Shoghi Cervantes
2014-02-01 01:06:05 +01:00
parent e619ebad61
commit 9cc624b74e
2 changed files with 4 additions and 5 deletions

View File

@ -971,7 +971,7 @@ class Entity extends Position{
}else{
return false; //Entity inmunity
}
}elseif($health === $this->health){
}elseif($health === $this->health and !$this->dead){
return false;
}
if($this->server->api->dhandle("entity.health.change", array("entity" => $this, "eid" => $this->eid, "health" => $health, "cause" => $cause)) !== false or $force === true){