mirror of
https://github.com/brighton-chi/mod-aoe-loot.git
synced 2026-01-12 16:48:36 +00:00
update item references due to core rewrite of item packets
This commit is contained in:
@@ -322,7 +322,7 @@ bool AoeLootCommandScript::ValidateLootingDistance(Player* player, ObjectGuid lg
|
||||
}
|
||||
else if (lguid.IsItem())
|
||||
{
|
||||
Item* pItem = player->GetItemByGuid(lguid);
|
||||
::Item* pItem = player->GetItemByGuid(lguid);
|
||||
return (pItem != nullptr); // Items in inventory don't need distance check
|
||||
}
|
||||
else if (lguid.IsCorpse())
|
||||
@@ -457,7 +457,7 @@ void AoeLootCommandScript::ReleaseAndCleanupLoot(ObjectGuid lguid, Player* playe
|
||||
}
|
||||
else if (lguid.IsItem())
|
||||
{
|
||||
Item* pItem = player->GetItemByGuid(lguid);
|
||||
::Item* pItem = player->GetItemByGuid(lguid);
|
||||
if (!pItem)
|
||||
return;
|
||||
|
||||
@@ -544,7 +544,7 @@ bool AoeLootCommandScript::ProcessSingleLootSlot(Player* player, ObjectGuid lgui
|
||||
|
||||
else if (lguid.IsItem())
|
||||
{
|
||||
Item* pItem = player->GetItemByGuid(lguid);
|
||||
::Item* pItem = player->GetItemByGuid(lguid);
|
||||
if (!pItem)
|
||||
{
|
||||
player->SendLootRelease(lguid);
|
||||
|
||||
Reference in New Issue
Block a user