From 8e5cc1a07b929424002bf5f704870ea8889e9739 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 23 May 2023 08:18:21 -0400 Subject: [PATCH] Core/Players: Respawn alive at graveyard when releasing spirit Port From (https://github.com/TrinityCore/TrinityCore/commit/fce1994795bdc87d0c87c7de9fc9f80a4f1b6507) --- Source/Game/Entities/Player/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index 180729799..3794dd079 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -4200,7 +4200,7 @@ namespace Game.Entities bool shouldResurrect = false; // 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; SpawnCorpseBones();