mirror of
https://github.com/brighton-chi/mod-aoe-loot.git
synced 2026-01-13 00:58:34 +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())
|
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
|
return (pItem != nullptr); // Items in inventory don't need distance check
|
||||||
}
|
}
|
||||||
else if (lguid.IsCorpse())
|
else if (lguid.IsCorpse())
|
||||||
@@ -457,7 +457,7 @@ void AoeLootCommandScript::ReleaseAndCleanupLoot(ObjectGuid lguid, Player* playe
|
|||||||
}
|
}
|
||||||
else if (lguid.IsItem())
|
else if (lguid.IsItem())
|
||||||
{
|
{
|
||||||
Item* pItem = player->GetItemByGuid(lguid);
|
::Item* pItem = player->GetItemByGuid(lguid);
|
||||||
if (!pItem)
|
if (!pItem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -544,7 +544,7 @@ bool AoeLootCommandScript::ProcessSingleLootSlot(Player* player, ObjectGuid lgui
|
|||||||
|
|
||||||
else if (lguid.IsItem())
|
else if (lguid.IsItem())
|
||||||
{
|
{
|
||||||
Item* pItem = player->GetItemByGuid(lguid);
|
::Item* pItem = player->GetItemByGuid(lguid);
|
||||||
if (!pItem)
|
if (!pItem)
|
||||||
{
|
{
|
||||||
player->SendLootRelease(lguid);
|
player->SendLootRelease(lguid);
|
||||||
|
|||||||
Reference in New Issue
Block a user