From b23f8c72f230339ef28ec91306d48baefb21b718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Mon, 23 May 2022 10:43:30 -0600 Subject: [PATCH] Update bot stats after equipping items --- src/PlayerbotFactory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index d5ab30cb..fbf69319 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -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)