diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-05-01 20:19:55 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-05-01 20:20:18 +0200 |
commit | 713783531c5657e1f77e5754385258a1a8ebe6cc (patch) | |
tree | 4f055d90a70233be0c8b0e2b6fac69903a29b1d7 /src/server/game/Maps/Map.cpp | |
parent | 00f28a81af0e93c50df01ac6ba8dcdb6c0887aee (diff) |
Core/Corpses: Misc fixes
* Updated corpse flags
* Fixed corpse guid during creation
* Properly set corpse faction
* Fixed setting weapon inventory types if transmogrified
* Fixed corpse location query response when corpse cannot be found
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rw-r--r-- | src/server/game/Maps/Map.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index d9f017ea8f8..1892c36cec5 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -4096,13 +4096,7 @@ Corpse* Map::ConvertCorpseToBones(ObjectGuid const& ownerGuid, bool insignia /*= bones->SetCellCoord(corpse->GetCellCoord()); bones->Relocate(corpse->GetPositionX(), corpse->GetPositionY(), corpse->GetPositionZ(), corpse->GetOrientation()); - bones->SetUInt32Value(CORPSE_FIELD_FLAGS, CORPSE_FLAG_UNK2 | CORPSE_FLAG_BONES); - bones->SetGuidValue(CORPSE_FIELD_OWNER, ObjectGuid::Empty); - bones->SetGuidValue(OBJECT_FIELD_DATA, ObjectGuid::Empty); - - for (uint8 i = 0; i < EQUIPMENT_SLOT_END; ++i) - if (corpse->GetUInt32Value(CORPSE_FIELD_ITEM + i)) - bones->SetUInt32Value(CORPSE_FIELD_ITEM + i, 0); + bones->SetUInt32Value(CORPSE_FIELD_FLAGS, corpse->GetUInt32Value(CORPSE_FIELD_FLAGS) | CORPSE_FLAG_BONES); bones->CopyPhaseFrom(corpse); |