Fix: Prevent addClass bots from getting realm firsts (#1745)

* Random/Addclass bots cannot get first achievements

* Use firsts achievement flags
This commit is contained in:
NoxMax
2025-10-23 12:10:35 -06:00
committed by GitHub
parent 286213eb8b
commit c3fd97b6c0

View File

@@ -220,7 +220,8 @@ public:
bool OnPlayerBeforeAchievementComplete(Player* player, AchievementEntry const* achievement) override bool OnPlayerBeforeAchievementComplete(Player* player, AchievementEntry const* achievement) override
{ {
if (sRandomPlayerbotMgr->IsRandomBot(player) && (achievement->flags == 256 || achievement->flags == 768)) if ((sRandomPlayerbotMgr->IsRandomBot(player) || sRandomPlayerbotMgr->IsAddclassBot(player)) &&
(achievement->flags & (ACHIEVEMENT_FLAG_REALM_FIRST_REACH | ACHIEVEMENT_FLAG_REALM_FIRST_KILL)))
{ {
return false; return false;
} }