From 50103ed13d96f59da378b8428a3a2b9d095e8fdd Mon Sep 17 00:00:00 2001 From: bash <31279994+hermensbas@users.noreply.github.com> Date: Wed, 13 Aug 2025 01:06:39 +0200 Subject: [PATCH] Update PlayerbotFactory.cpp --- src/factory/PlayerbotFactory.cpp | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/factory/PlayerbotFactory.cpp b/src/factory/PlayerbotFactory.cpp index 4ec0bcfb..94b54964 100644 --- a/src/factory/PlayerbotFactory.cpp +++ b/src/factory/PlayerbotFactory.cpp @@ -161,23 +161,35 @@ void PlayerbotFactory::Init() { uint32 gemId = iter->GemID; if (gemId == 0) + { continue; + } ItemTemplate const* proto = sObjectMgr->GetItemTemplate(gemId); - if (!proto) - continue - - if (proto->ItemLevel < 60) - continue; - - if (proto->Flags & ITEM_FLAG_UNIQUE_EQUIPPABLE) + if (!proto) + { continue; + } + + if (proto->ItemLevel < 60) + { + continue; + } + + if (proto->Flags & ITEM_FLAG_UNIQUE_EQUIPPABLE) + { + continue; + } if (sRandomItemMgr->IsTestItem(gemId)) - continue; - + { + continue; + } + if (!sGemPropertiesStore.LookupEntry(proto->GemProperties)) + { continue; + } // LOG_INFO("playerbots", "Add {} to enchantment gems", gemId); enchantGemIdCache.push_back(gemId);