Jump to content

Require help with Legion fightclass (Unholy)


Jupken13

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...