877 if (!
items[i].is_looted && !
items[i].freeforall &&
items[i].conditions.empty() &&
items[i].AllowedForPlayer(viewer))
881 if (
items[i].is_blocked)
890 if (viewer->GetGroup() && viewer->GetGroup()->GetMasterLooterGuid() == viewer->GetGUID())
916 lootItem.
UIType = slot_type;
919 packet.
Items.push_back(lootItem);
928 if (!
items[i].is_looted && !
items[i].freeforall &&
items[i].conditions.empty() &&
items[i].AllowedForPlayer(viewer))
939 packet.
Items.push_back(lootItem);
949 if (!
items[i].is_looted && !
items[i].freeforall &&
items[i].conditions.empty() &&
items[i].AllowedForPlayer(viewer))
956 packet.
Items.push_back(lootItem);
967 QuestItemMap::const_iterator q_itr = lootPlayerQuestItems.find(viewer->GetGUID().GetCounter());
968 if (q_itr != lootPlayerQuestItems.end())
971 for (QuestItemList::const_iterator qi = q_list->begin(); qi != q_list->end(); ++qi)
999 lootItem.
UIType = slotType;
1004 lootItem.
UIType = slotType;
1006 packet.
Items.push_back(lootItem);
1012 QuestItemMap::const_iterator ffa_itr = lootPlayerFFAItems.find(viewer->GetGUID().GetCounter());
1013 if (ffa_itr != lootPlayerFFAItems.end())
1016 for (QuestItemList::const_iterator fi = ffa_list->begin(); fi != ffa_list->end(); ++fi)
1023 lootItem.
UIType = slotType;
1026 packet.
Items.push_back(lootItem);
1032 QuestItemMap::const_iterator nn_itr = lootPlayerNonQuestNonFFAConditionalItems.find(viewer->GetGUID().GetCounter());
1033 if (nn_itr != lootPlayerNonQuestNonFFAConditionalItems.end())
1036 for (QuestItemList::const_iterator ci = conditional_list->begin(); ci != conditional_list->end(); ++ci)
1064 lootItem.
UIType = slotType;
1069 lootItem.
UIType = slotType;
1071 packet.
Items.push_back(lootItem);
bool follow_loot_rules
Definition: LootMgr.h:172
std::vector< LootItemData > Items
Definition: LootPackets.h:72
bool is_blocked
Definition: LootMgr.h:167
uint8 LootListID
Definition: LootPackets.h:45
bool is_looted
Definition: LootMgr.h:166
Definition: LootMgr.h:124
LootSlotType
Definition: LootMgr.h:122
uint32 Coins
Definition: LootPackets.h:71
QuestItemMap const & GetPlayerNonQuestNonFFAConditionalItems() const
Definition: LootMgr.h:318
QuestItemMap const & GetPlayerQuestItems() const
Definition: LootMgr.h:316
Definition: LootPackets.h:39
Definition: LootMgr.h:125
Definition: LootMgr.h:128
ObjectGuid roundRobinPlayer
Definition: LootMgr.h:324
uint32 gold
Definition: LootMgr.h:322
Definition: LootMgr.h:157
WorldPackets::Item::ItemInstance Loot
Definition: LootPackets.h:47
std::vector< LootItem > items
Definition: LootMgr.h:320
std::vector< QuestItem > QuestItemList
Definition: LootMgr.h:203
uint8 UIType
Definition: LootPackets.h:42
void Initialize(::Item const *item)
Definition: ItemPackets.cpp:248
uint32 Quantity
Definition: LootPackets.h:43
uint8_t uint8
Definition: Define.h:152
QuestItemMap const & GetPlayerFFAItems() const
Definition: LootMgr.h:317
Definition: LootMgr.h:126
uint8 count
Definition: LootMgr.h:165
Definition: LootMgr.h:127
std::map< ObjectGuid::LowType, QuestItemList * > QuestItemMap
Definition: LootMgr.h:207
bool IsEmpty() const
Definition: ObjectGuid.h:242
std::vector< LootItem > quest_items
Definition: LootMgr.h:321