diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index 400305ae..7e344ad1 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -1293,7 +1293,7 @@ bool PlayerbotFactory::IsDesiredReplacement(Item* item) // } uint32 delta = 1 + (80 - bot->getLevel()) / 10; - return int32(bot->getLevel() - requiredLevel) > delta; + return proto->Quality < ITEM_QUALITY_RARE || int32(bot->getLevel() - requiredLevel) > delta; } inline Item* StoreNewItemInInventorySlot(Player* player, uint32 newItemId, uint32 count) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index d6431ad6..5851168d 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1448,7 +1448,7 @@ void RandomPlayerbotMgr::Refresh(Player* bot) bot->SetFullHealth(); bot->SetPvP(true); - PlayerbotFactory factory(bot, bot->getLevel()); + PlayerbotFactory factory(bot, bot->getLevel(), ITEM_QUALITY_RARE); factory.Refresh(); if (bot->GetMaxPower(POWER_MANA) > 0)