Hey again,
I've been working on some profiles for older versions of the game, mostly using examples from other profiles and piecing things together as I go. There are a couple of things I can't find examples of that I'm hoping someone can help me with.
First, is there a way to cast an ability based on the type of target? Undead, Demon, etc. Some of the older abilities (Holy Wrath, for example) only work on Undead or Demon targets. I want to add these to my AoE rotation, but only fire if I'm targeting those types of mobs.
Second, same goes for "boss" level targets. I'd like to be able to add certain abilities to my rotations that only fire if I'm attacking a boss (5man instance or raid).
Third, is there a simple mouseover decurse function? The examples I've found so far don't seem to work on the game version I play on. All I want is that, if my mouseover target has a certain type of debuff (magic, disease, curse, etc) then it casts. Otherwise it does nothing. This is what I've been trying to get to work, not sure if it's completely wrong -
Code:
local i = 1
local bad = UnitDebuff("PQR_CustomTarget",i)
local type = select(5, UnitDebuff("PQR_CustomTarget",i))
if bad ~= nil and type == "Magic" or type == "Poison" or type == "Disease" then
return true
end
Thanks in advance for the help!