mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Update bot stats after equipping items
This commit is contained in:
parent
9d37ba972a
commit
b23f8c72f2
@ -1197,6 +1197,10 @@ void PlayerbotFactory::InitEquipment(bool incremental)
|
|||||||
continue;
|
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)
|
bool PlayerbotFactory::IsDesiredReplacement(Item* item)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user