mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update bot stats after equipping items
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user