fix(Core/Loot): Fix quest items looting system (#13720)

* Fix quest items loot

* Fix coding conventions
This commit is contained in:
Mickaël Mauger
2022-12-06 16:42:44 +01:00
committed by GitHub
parent 31b4e31633
commit 868053d4ce
2 changed files with 29 additions and 20 deletions
+1 -2
View File
@@ -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; }
};