Core/Unit: Erm, so it turns out that releasing your spirit actually never set your death state to DEAD. It stayed as CORPSE. That's wrong, of course, but we didn't notice because zombie corpses.

Port From (https://github.com/TrinityCore/TrinityCore/commit/fdb3f4159e5e7865429e5b7212fba1ef602e6839)
This commit is contained in:
hondacrx
2021-11-03 11:59:34 -04:00
parent 049f8c758f
commit f649596651
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -899,7 +899,7 @@ namespace Game
});
// setting Ghost+speed if dead
if (pCurrChar.GetDeathState() != DeathState.Alive)
if (pCurrChar.GetDeathState() == DeathState.Dead)
{
// not blizz like, we must correctly save and load player instead...
if (pCurrChar.GetRace() == Race.NightElf && !pCurrChar.HasAura(20584))