Core/Players: Respawn alive at graveyard when releasing spirit
Port From (https://github.com/TrinityCore/TrinityCore/commit/fce1994795bdc87d0c87c7de9fc9f80a4f1b6507)
This commit is contained in:
@@ -4200,7 +4200,7 @@ namespace Game.Entities
|
|||||||
|
|
||||||
bool shouldResurrect = false;
|
bool shouldResurrect = false;
|
||||||
// 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 != null && zone.GetFlags().HasFlag(AreaFlags.NoGhostOnRelease)) || GetTransport() != null || GetPositionZ() < GetMap().GetMinHeight(GetPhaseShift(), GetPositionX(), GetPositionY()))
|
if ((!IsAlive() && zone != null && zone.GetFlags().HasFlag(AreaFlags.NoGhostOnRelease)) || GetMap().IsNonRaidDungeon() || GetMap().IsRaid() || GetTransport() != null || GetPositionZ() < GetMap().GetMinHeight(GetPhaseShift(), GetPositionX(), GetPositionY()))
|
||||||
{
|
{
|
||||||
shouldResurrect = true;
|
shouldResurrect = true;
|
||||||
SpawnCorpseBones();
|
SpawnCorpseBones();
|
||||||
|
|||||||
Reference in New Issue
Block a user