diff options
Diffstat (limited to 'src/server/game/Loot/LootMgr.cpp')
-rw-r--r-- | src/server/game/Loot/LootMgr.cpp | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 9475a5c906b..00959ce3a0b 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -993,12 +993,15 @@ void LoadLootTemplates_Creature() CreatureTemplateContainer const& ctc = sObjectMgr->GetCreatureTemplates(); for (auto const& creatureTemplatePair : ctc) { - if (uint32 lootid = creatureTemplatePair.second.lootid) + for (auto const& [difficulty, creatureDifficulty] : creatureTemplatePair.second.difficultyStore) { - if (!lootIdSet.count(lootid)) - LootTemplates_Creature.ReportNonExistingId(lootid, "Creature", creatureTemplatePair.first); - else - lootIdSetUsed.insert(lootid); + if (uint32 lootid = creatureDifficulty.LootID) + { + if (!lootIdSet.count(lootid)) + LootTemplates_Creature.ReportNonExistingId(lootid, "Creature", creatureTemplatePair.first); + else + lootIdSetUsed.insert(lootid); + } } } @@ -1182,12 +1185,15 @@ void LoadLootTemplates_Pickpocketing() CreatureTemplateContainer const& ctc = sObjectMgr->GetCreatureTemplates(); for (auto const& creatureTemplatePair : ctc) { - if (uint32 lootid = creatureTemplatePair.second.pickpocketLootId) + for (auto const& [difficulty, creatureDifficulty] : creatureTemplatePair.second.difficultyStore) { - if (!lootIdSet.count(lootid)) - LootTemplates_Pickpocketing.ReportNonExistingId(lootid, "Creature", creatureTemplatePair.first); - else - lootIdSetUsed.insert(lootid); + if (uint32 lootid = creatureDifficulty.PickPocketLootID) + { + if (!lootIdSet.count(lootid)) + LootTemplates_Pickpocketing.ReportNonExistingId(lootid, "Creature", creatureTemplatePair.first); + else + lootIdSetUsed.insert(lootid); + } } } @@ -1269,12 +1275,15 @@ void LoadLootTemplates_Skinning() CreatureTemplateContainer const& ctc = sObjectMgr->GetCreatureTemplates(); for (auto const& creatureTemplatePair : ctc) { - if (uint32 lootid = creatureTemplatePair.second.SkinLootId) + for (auto const& [difficulty, creatureDifficulty] : creatureTemplatePair.second.difficultyStore) { - if (!lootIdSet.count(lootid)) - LootTemplates_Skinning.ReportNonExistingId(lootid, "Creature", creatureTemplatePair.first); - else - lootIdSetUsed.insert(lootid); + if (uint32 lootid = creatureDifficulty.SkinLootID) + { + if (!lootIdSet.count(lootid)) + LootTemplates_Skinning.ReportNonExistingId(lootid, "Creature", creatureTemplatePair.first); + else + lootIdSetUsed.insert(lootid); + } } } |