[12736] Implemented reforge, also added missing part for HandleObjectUpdateFailedOpcode

This commit is contained in:
sanctum32 2013-11-18 19:04:50 +02:00 committed by Antz
parent 22e906cea5
commit 3490f642cf
17 changed files with 464 additions and 14 deletions

View file

@ -1604,5 +1604,12 @@ void WorldSession::HandleObjectUpdateFailedOpcode(WorldPacket& recv_data)
recv_data.ReadGuidBytes<6, 7, 2, 3, 1, 4, 0, 5>(guid);
DEBUG_LOG("WORLD: Received CMSG_OBJECT_UPDATE_FAILED from %s (%u) guid: %s", GetPlayerName(), GetAccountId(), guid.GetString().c_str());
if (_player->IsInWorld())
{
if (WorldObject* obj = _player->GetMap()->GetWorldObject(guid))
obj->SendCreateUpdateToPlayer(_player);
}
else
sLog.outError("WorldSession::HandleObjectUpdateFailedOpcode: received from player not in map");
}