Anyone interested in helping me modify these abilities I would greatly appreciate it.
Earth Shield
Code:
if not UnitBuffID("player",52127)
then return true end
That is the current Water Shield, What I have been trying to do with it is make it so if Earth Shield or Water Shield is active on me then it does not recast. I went to check different statements for variables and tried to modify it but it doesn't seem to check for the buff. How can I add it to check for 52127 or 974 and if either of those are active do not recast water shield.
Cleanse
Code:
PQR_CustomTarget = "player"
local group = "party"
local members = GetNumPartyMembers()
local debuff = { 5782, 61305, 28272, 61721, 61780, 28271, 24259, 31117 }
local targetdebuff = nil
local havedebuff = 0
if GetNumRaidMembers() > 0 then
group = "raid"
members = GetNumRaidMembers()
end
for i = 1, members, 1 do
local member = group..tostring(i)
if UnitInRange(member) and UnitIsFriend("player", member) and UnitIsDeadOrGhost(member) == nil then
for i,v in ipairs(debuff) do
if UnitDebuffID(member,v) then
havedebuff = 1
targetdebuff = PQR_CustomTarget
if havedebuff == 1 then
havedebuff = 0
return true
end
end
end
end
end
Now this Cleanse does not seem to check for the debuffs that are in the list it just cleanses everything and I can't for the life of my figure out why it does this or how to make it cleanse just what is in that list.