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