AzerPUG / ToolTips

http://www.azerpug.com
Other
3 stars 1 forks source link

Addon calls SendAddonMessage hundreds of times per minute to raid while in batteground #10

Closed aa-chrismcfadyen closed 3 years ago

aa-chrismcfadyen commented 3 years ago

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.

Arco-Dielhof commented 3 years ago

Heyy, thanx for letting us know and sorry for the inconvenience! I will try to get a fix out for this ASAP!

If you would be interested in helping me test a potential quick-fix, contact me on Discord: Tex#1991