Core/Achievements: Suppress achievement earned messages and visuals on first login

This commit is contained in:
Shauren
2026-05-19 00:12:24 +02:00
parent b2d6776dce
commit bfee0955b8
2 changed files with 2 additions and 0 deletions
@@ -664,6 +664,7 @@ void PlayerAchievementMgr::SendAchievementEarned(AchievementEntry const* achieve
achievementEarned.AchievementID = achievement->ID;
achievementEarned.Time = *GameTime::GetUtcWowTime();
achievementEarned.Time += receiver->GetSession()->GetTimezoneOffset();
achievementEarned.Initial = receiver->HasAtLoginFlag(AT_LOGIN_FIRST);
receiver->SendDirectMessage(achievementEarned.Write());
};
@@ -27,6 +27,7 @@ ByteBuffer& operator<<(ByteBuffer& data, EarnedAchievement const& earned)
data << earned.Owner;
data << uint32(earned.VirtualRealmAddress);
data << uint32(earned.NativeRealmAddress);
return data;
}