Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[LUA Fightclass] UnitDebuff + BuffStackTarget

Featured Replies

Hello,

I can't seem to figure out the following:

I want to have a condition that checks the Buff Stack Target for Festering Wound.
However, whenever I use this function, it checks the debuffs from ALL DK's.
I want to check the Stack of my own debuffs, which can go up to 8.

Target Buff Casted By Me checks if my debuff is on the target, but that only checks for if the debuff is "present".

If I combine the above 2, it doesn't work.

Hence, I started to write in LUA code... But I seem to have reach an impasse.

returnResult = false;
local name = GetSpellInfo(194310);
local _, _, _, count, _, _, _, unitCaster = UnitDebuff("target", name, nil, "player");
if count and count =< 6 then
returnResult = true;
end

The above seems to work, but not if the debuff isn't present!

I would also need the same code, but this time, with a Between function.
Example: Between 2 & 6 stacks.

I lack the experience to create the proper code, can anyone help?

Thanks!

  • Author

I tested this code.

Again, this code works if the debuff ( Festering Wound ) is present with at least one stack.

In case the debuff is non existant on the target, it doesn't cast.

I could probably use Target Buff Casted By Me as a workaround in a different condition, although that would give me a lot more work.

Thanks for feedback.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.