Update bot stats after equipping items

This commit is contained in:
郑佩茹
2022-05-23 10:43:30 -06:00
parent 9d37ba972a
commit b23f8c72f2

View File

@@ -1197,6 +1197,10 @@ void PlayerbotFactory::InitEquipment(bool incremental)
continue;
}
}
// Update stats here so the bots will benefit from the new equipped items' stats
bot->InitStatsForLevel(true);
bot->UpdateAllStats();
}
bool PlayerbotFactory::IsDesiredReplacement(Item* item)