Addon calls SendAddonMessage hundreds of times per minute to raid while in batteground
aa-chrismcfadyen opened this issue ยท 1 comments
And thus spams your chat window with "You are not in a raid group". Even if you don't get the error messages, it still causes a massive amount of lag.
IsInRaid() does not seem to do what you want it to do, as it returns true any time you are in a raid-like group, including LFR and random BGs, not ones that are valid for /ra
Other addons use
UnitInBattleground("player") ~= nil
or
(not IsInRaid(LE_PARTY_CATEGORY_HOME) and IsInRaid(LE_PARTY_CATEGORY_INSTANCE)) and "INSTANCE_CHAT" or "RAID"
to switch between raid chat and instance chat.
However, there's still the problem of sending far too many addon message and lagging the user badly.