September 4, 20169 yr 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
September 5, 20169 yr 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