Core/Players: Respawn alive at graveyard when releasing spirit

Port From (https://github.com/TrinityCore/TrinityCore/commit/fce1994795bdc87d0c87c7de9fc9f80a4f1b6507)
This commit is contained in:
hondacrx
2023-05-23 08:18:21 -04:00
parent cc1180050e
commit 8e5cc1a07b
+1 -1
View File
@@ -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();