Update PlayerbotFactory.cpp

This commit is contained in:
bash
2025-08-13 01:06:39 +02:00
committed by GitHub
parent 6e638cdf0c
commit 50103ed13d

View File

@@ -161,23 +161,35 @@ void PlayerbotFactory::Init()
{
uint32 gemId = iter->GemID;
if (gemId == 0)
{
continue;
}
ItemTemplate const* proto = sObjectMgr->GetItemTemplate(gemId);
if (!proto)
continue
{
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);