Another Attempt to fix autoloot
This commit is contained in:
parent
6c70f57e8e
commit
f625e8ce2e
@ -4,6 +4,7 @@
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Config.h"
|
||||
#include "LootMgr.h"
|
||||
#include "Item.h"
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
@ -54,7 +55,12 @@ namespace
|
||||
{
|
||||
Loot* loot = &go->loot;
|
||||
for (uint32 i = 0; i < loot->items.size(); ++i)
|
||||
plr->StoreLootItem(i, loot);
|
||||
{
|
||||
if (loot->items[i].is_looted)
|
||||
continue;
|
||||
InventoryResult msg = EQUIP_ERR_OK;
|
||||
plr->StoreLootItem(uint8(i), loot, msg);
|
||||
}
|
||||
|
||||
plr->SendLootRelease(go->GetGUID());
|
||||
go->SetLootState(GO_JUST_DEACTIVATED);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user