Originally Posted by
Lexi777
Would it be simple to create a profile for my resto shaman that just simply just dispels certain spells automatically? For example in rated battlegrounds when our disc priest dispels UA and gets silenced for 3 seconds. That's basically all I would need to be dispelled oh and maybe polymorph.
If anyone at all could either guide me so I could create it on my own or if it's super simple for someone to create it any help would be appreciated, thanks in advance!
What I did for my Resto PvP dispel is followed the dispel code from a shadow priest pvp profile, I don't know whos profile it was so I can't give them credit but it does the job and is not my work.
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
The bold area is where you will add the specific debuffs you want to have dispelled.