diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 68ef554d4f..6641e6ee7f 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -420,6 +420,11 @@ bool LootItem::AllowedForPlayer(Player const* player, ObjectGuid source) const return false; } + if (!sScriptMgr->OnAllowedForPlayerLootCheck(player, source)) + { + return false; + } + bool isMasterLooter = player->GetGroup() && player->GetGroup()->GetMasterLooterGuid() == player->GetGUID(); bool itemVisibleForMasterLooter = !needs_quest && (!follow_loot_rules || !is_underthreshold); @@ -473,11 +478,6 @@ bool LootItem::AllowedForPlayer(Player const* player, ObjectGuid source) const return false; } - if (!sScriptMgr->OnAllowedForPlayerLootCheck(player, source)) - { - return false; - } - return true; }