Core/Phases: apply phasing to bones when converting from corpse

This commit is contained in:
Rat
2014-10-30 11:58:05 +01:00
parent 2f48b5fb59
commit 4fab55d703

View File

@@ -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);
}