Forever Combat Nameplates: run on client 70532 and every later build

SIN's 3.0 accepts only build 70532: the add-on stops at its first line on any other build, and the realm ignores the
ON/OFF request and sends no READY to other builds. On our 70938 client it therefore did nothing. The three checks now
take 70532 and later; nothing else in SIN's code changes.
This commit is contained in:
Karrz1
2026-11-16 20:10:27 +00:00
parent 6c6572e1a8
commit 86c0d65f80
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -555,7 +555,7 @@ void WorldSession::HandleChatAddonMessage(ChatMsg type, std::string prefix, std:
{
// This protocol is local to the sender, including when a grouped
// Classic client uses its group distribution instead of a self whisper.
if (GetClientBuild() != 70532 || (text != "ON" && text != "OFF") ||
if (GetClientBuild() < 70532 || (text != "ON" && text != "OFF") ||
std::find(_registeredAddonPrefixes.begin(), _registeredAddonPrefixes.end(), prefix) == _registeredAddonPrefixes.end())
return;
+1 -1
View File
@@ -1302,7 +1302,7 @@ void WorldSession::HandleUnregisterAllAddonPrefixesOpcode(WorldPackets::Chat::Ch
void WorldSession::HandleAddonRegisteredPrefixesOpcode(WorldPackets::Chat::ChatRegisterAddonPrefixes& packet)
{
// This is always sent after CMSG_CHAT_UNREGISTER_ALL_ADDON_PREFIXES
bool const announceCombatNameplates = GetClientBuild() == 70532 && GetPlayer() &&
bool const announceCombatNameplates = GetClientBuild() >= 70532 && GetPlayer() &&
!advstd::ranges::contains(_registeredAddonPrefixes, Player::CombatNameplatePrefix) &&
advstd::ranges::contains(packet.Prefixes, Player::CombatNameplatePrefix);
_registeredAddonPrefixes.insert(_registeredAddonPrefixes.end(), packet.Prefixes.begin(), packet.Prefixes.end());