fix(Core/Loot): Fix quest items looting system (#13720)
* Fix quest items loot * Fix coding conventions
This commit is contained in:
@@ -177,8 +177,7 @@ struct LootItem
|
||||
LootItem() = default;
|
||||
|
||||
// Basic checks for player/item compatibility - if false no chance to see the item in the loot
|
||||
bool AllowedForPlayer(Player const* player, bool isGivenByMasterLooter = false, bool allowQuestLoot = true, ObjectGuid source = ObjectGuid::Empty) const;
|
||||
bool AllowedForPlayer(Player const* player, ObjectGuid source) { return AllowedForPlayer(player, false, true, source); };
|
||||
bool AllowedForPlayer(Player const* player, ObjectGuid source) const;
|
||||
void AddAllowedLooter(Player const* player);
|
||||
[[nodiscard]] const AllowedLooterSet& GetAllowedLooters() const { return allowedGUIDs; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user