409{
411 if (!pProto)
412 {
413 return false;
414 }
415
416 bool isMasterLooter = player->GetGroup() && player->GetGroup()->GetMasterLooterGuid() == player->GetGUID();
417
418
420 {
421
423 {
425 {
426 return true;
427 }
428 }
429
430 return false;
431 }
432
433
435 {
436 return false;
437 }
438
440 {
441 return false;
442 }
443
444
446 {
447 return true;
448 }
449
450
452 {
453 return false;
454 }
455
456
458 {
459 return false;
460 }
461
462
464 {
465 return false;
466 }
467
468 if (!
sScriptMgr->OnAllowedForPlayerLootCheck(player, source))
469 {
470 return false;
471 }
472
473 return true;
474}
#define sConditionMgr
Definition: ConditionMgr.h:289
@ ITEM_FLAG_HIDE_UNUSABLE_RECIPE
Definition: ItemTemplate.h:173
@ ITEM_FLAGS_EXTRA_ALLIANCE_ONLY
Definition: ItemTemplate.h:221
@ ITEM_FLAGS_EXTRA_HORDE_ONLY
Definition: ItemTemplate.h:220
@ BIND_WHEN_PICKED_UP
Definition: ItemTemplate.h:97
@ ITEM_CLASS_RECIPE
Definition: ItemTemplate.h:309
@ ITEM_FLAGS_CU_IGNORE_QUEST_STATUS
Definition: ItemTemplate.h:229
@ QUEST_STATUS_NONE
Definition: QuestDef.h:100
#define sScriptMgr
Definition: ScriptMgr.h:2690
@ TEAM_ALLIANCE
Definition: SharedDefines.h:732
@ TEAM_HORDE
Definition: SharedDefines.h:733
int32 SpellId
Definition: ItemTemplate.h:600
uint32 RequiredSkill
Definition: ItemTemplate.h:646
_Spell Spells[MAX_ITEM_PROTO_SPELLS]
Definition: ItemTemplate.h:671
uint32 Class
Definition: ItemTemplate.h:630
uint32 Flags2
Definition: ItemTemplate.h:637
uint32 StartQuest
Definition: ItemTemplate.h:677
uint32 Bonding
Definition: ItemTemplate.h:672
Definition: Player.h:1046
References BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, ItemTemplate::Class, conditions, ItemTemplate::Flags, ItemTemplate::Flags2, ItemTemplate::FlagsCu, follow_loot_rules, Player::GetGroup(), Object::GetGUID(), Group::GetMasterLooterGuid(), Player::GetQuestStatus(), Player::GetTeamId(), Player::HasQuestForItem(), Player::HasSkill(), Player::HasSpell(), is_underthreshold, ITEM_CLASS_RECIPE, ITEM_FLAG_HIDE_UNUSABLE_RECIPE, ITEM_FLAGS_CU_IGNORE_QUEST_STATUS, ITEM_FLAGS_EXTRA_ALLIANCE_ONLY, ITEM_FLAGS_EXTRA_HORDE_ONLY, itemid, needs_quest, QUEST_STATUS_NONE, ItemTemplate::RequiredSkill, sConditionMgr, sObjectMgr, _Spell::SpellId, ItemTemplate::Spells, sScriptMgr, ItemTemplate::StartQuest, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by Loot::AddItem(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), Loot::LootItemInSlot(), and Player::StoreLootItem().