Hi, I'm looking for some help with some custom code. Basically, I want to create a weakaura that will /say the stack count of the Branded debuff that Imperator Mar’gok does in Highmaul.
I found a weakaura that does just this for another debuff that I believe I could just substitute Branded into, but the issue is that Branded also has four different names throughout the phases of the encounter:
Branded, Branded: Displacement, Branded: Fortification, and Branded: Replication.
Here is the code that I found that should do what I want for a single debuff, in this case it's "coolbossdebuff"
Code:local stacks = select(4, UnitDebuff('player', 'coolbossdebuff')) or 0 -- yank out the stack count (default to 0 if you don't have the debuff) if stacks > 0 then -- only say stuff if you have 1 or more stacks. local message = string.format("debuff at %d stacks", debuffs) -- build a nice message with the stacks inside SendChatMessage(message, 'say') -- send the chat message out via /say end
I want it to say the stacks of all four versions of the debuff.
Thanks!