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:
@@ -4100,6 +4100,7 @@ namespace Game.Entities
|
||||
GetMap().AddToMap(corpse);
|
||||
|
||||
// convert player body to ghost
|
||||
SetDeathState(DeathState.Dead);
|
||||
SetHealth(1);
|
||||
|
||||
SetWaterWalking(true);
|
||||
|
||||
Reference in New Issue
Block a user