mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 00:13:47 +00:00
Merge pull request #448 from liyunfan1223/fix_gear_quality
Fix gear quality issue for random bots
This commit is contained in:
@@ -1815,8 +1815,7 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
|
|||||||
bot->DurabilityRepairAll(false, 1.0f, false);
|
bot->DurabilityRepairAll(false, 1.0f, false);
|
||||||
bot->SetFullHealth();
|
bot->SetFullHealth();
|
||||||
bot->SetPvP(true);
|
bot->SetPvP(true);
|
||||||
|
PlayerbotFactory factory(bot, bot->GetLevel());
|
||||||
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
|
|
||||||
factory.Refresh();
|
factory.Refresh();
|
||||||
|
|
||||||
if (bot->GetMaxPower(POWER_MANA) > 0)
|
if (bot->GetMaxPower(POWER_MANA) > 0)
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ bool AutoUpgradeEquipAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
|
PlayerbotFactory factory(bot, bot->GetLevel());
|
||||||
if (!sPlayerbotAIConfig->equipmentPersistence || bot->GetLevel() < sPlayerbotAIConfig->equipmentPersistenceLevel)
|
if (!sPlayerbotAIConfig->equipmentPersistence || bot->GetLevel() < sPlayerbotAIConfig->equipmentPersistenceLevel)
|
||||||
{
|
{
|
||||||
factory.InitEquipment(true);
|
factory.InitEquipment(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user