Core/Phases: apply phasing to bones when converting from corpse
This commit is contained in:
1 parent
2f48b5fb59
commit
4fab55d703
1 file changed
+3
@@ -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