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.

Require help with Legion fightclass (Unholy)

Featured Replies

Dear all,

 

I'm trying to create a fightclass that can be used in dungeons/raids.

I have some complications with inserting certain code.

I've scouted the forums in search for an answer, but I am unable to find it.

There are 2 things I wish to add to my rotation.

Soul Reaper (lua):
 

returnResult = false; local name = GetSpellInfo(194310); local _, _, _, count = UnitBuff("target", name); if count and count >= 3 then returnResult = true; end

I shamelessly adapted (and modified) this code from Droidz to count target buff stacks (was originally own buffs)...

But it does not work. :<

Apocalypse (ID 220143):

I wish to /use this Artifact (ID 128403) ability, with the same code that I used for Soul Reaper, as is shown above.

 

I've added the fightclass as an attachment, but it remains incomplete.

Thanks in advance for your help!

Jupken13 Unholy Raid v1.0.xml

  • Author
22 hours ago, Bugreporter said:

try this code:

 

Thanks for the info!

It seems the only mistake on my code was writing "UnitBuff" instead of "UnitDebuff".

After changing this, it worked just fine.

I might use your code if I can manage to find how to count stacks.

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.