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
View File
@@ -4100,6 +4100,7 @@ namespace Game.Entities
GetMap().AddToMap(corpse);
// convert player body to ghost
SetDeathState(DeathState.Dead);
SetHealth(1);
SetWaterWalking(true);