mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Phases: apply phasing to bones when converting from corpse
This commit is contained in:
@@ -413,6 +413,9 @@ Corpse* ObjectAccessor::ConvertCorpseForPlayer(ObjectGuid player_guid, bool insi
|
||||
bones->SetUInt32Value(CORPSE_FIELD_ITEM + i, 0);
|
||||
}
|
||||
|
||||
for (auto phaseId : corpse->GetPhases())
|
||||
bones->SetInPhase(phaseId, false, true);
|
||||
|
||||
// add bones in grid store if grid loaded where corpse placed
|
||||
map->AddToMap(bones);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user