mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10371] More wide use ObjectGuid in group code.
Also drop some unused functions. And fix some uint32 -> uint6 guid assigns.
This commit is contained in:
parent
acdaac3587
commit
dbe9c6f190
19 changed files with 354 additions and 346 deletions
|
|
@ -437,7 +437,7 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
|
||||
// update next looter
|
||||
if(Group* group = pCreature->GetGroupLootRecipient())
|
||||
if (group->GetLooterGuid() == player->GetGUID())
|
||||
if (group->GetLooterGuid() == player->GetObjectGuid())
|
||||
group->UpdateLooterGuid(pCreature);
|
||||
|
||||
if (loot->isLooted())
|
||||
|
|
@ -469,19 +469,19 @@ void WorldSession::HandleLootMasterGiveOpcode( WorldPacket & recv_data )
|
|||
|
||||
recv_data >> lootguid >> slotid >> target_playerguid;
|
||||
|
||||
if(!_player->GetGroup() || _player->GetGroup()->GetLooterGuid() != _player->GetGUID())
|
||||
if (!_player->GetGroup() || _player->GetGroup()->GetLooterGuid() != _player->GetObjectGuid())
|
||||
{
|
||||
_player->SendLootRelease(GetPlayer()->GetLootGUID());
|
||||
return;
|
||||
}
|
||||
|
||||
Player *target = ObjectAccessor::FindPlayer(target_playerguid);
|
||||
if(!target)
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
DEBUG_LOG("WorldSession::HandleLootMasterGiveOpcode (CMSG_LOOT_MASTER_GIVE, 0x02A3) Target = %s [%s].", target_playerguid.GetString().c_str(), target->GetName());
|
||||
|
||||
if(_player->GetLootGUID() != lootguid.GetRawValue())
|
||||
if (_player->GetLootGUID() != lootguid.GetRawValue())
|
||||
return;
|
||||
|
||||
Loot *pLoot = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue