mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-13 23:43:44 +00:00
fix(Core): fix instance portal not resurrecting when corpse is not spawned (#6106)
This commit is contained in:
@@ -5484,6 +5484,18 @@ Corpse* Player::CreateCorpse()
|
||||
return corpse;
|
||||
}
|
||||
|
||||
void Player::RemoveCorpse()
|
||||
{
|
||||
if (GetCorpse())
|
||||
{
|
||||
GetCorpse()->RemoveFromWorld();
|
||||
}
|
||||
|
||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||
Corpse::DeleteFromDB(GetGUID(), trans);
|
||||
CharacterDatabase.CommitTransaction(trans);
|
||||
}
|
||||
|
||||
void Player::SpawnCorpseBones(bool triggerSave /*= true*/)
|
||||
{
|
||||
_corpseLocation.WorldRelocate();
|
||||
|
||||
Reference in New Issue
Block a user