*Automatically revive players when they fall under the map.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -4468,7 +4468,7 @@ void Player::RepopAtGraveyard()
|
|||||||
AreaTableEntry const *zone = GetAreaEntryByAreaID(GetAreaId());
|
AreaTableEntry const *zone = GetAreaEntryByAreaID(GetAreaId());
|
||||||
|
|
||||||
// Such zones are considered unreachable as a ghost and the player must be automatically revived
|
// Such zones are considered unreachable as a ghost and the player must be automatically revived
|
||||||
if(!isAlive() && zone && zone->flags & AREA_FLAG_NEED_FLY || GetTransport())
|
if(!isAlive() && zone && zone->flags & AREA_FLAG_NEED_FLY || GetTransport() || GetPositionZ() < -500.0f)
|
||||||
{
|
{
|
||||||
ResurrectPlayer(0.5f);
|
ResurrectPlayer(0.5f);
|
||||||
SpawnCorpseBones();
|
SpawnCorpseBones();
|
||||||
|
|||||||
Reference in New Issue
Block a user