Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if UnitFactionGroup("player") == "Alliance" then
- if GetInventoryItemID("player", 14) == 70394 then
- myTrinket = GetItemCooldown(70394)
- else
- myTrinket = nil
- end
- else
- if GetInventoryItemID("player", 14) == 70394 then
- myTrinket = GetItemCooldown(70394)
- else
- myTrinket = nil
- end
- end
- if myTrinket ~= nil then
- --check if we have a debuff
- if myTrinket == 0 then
- pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 118) --Polymorph
- if pvpdebuffCheck == nil then
- pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 605) --Mind Control
- end
- if pvpdebuffCheck == nil then
- pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 51514) --Hex
- end
- if pvpdebuffCheck == nil then
- pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 6358) --Seduction
- end
- if pvpdebuffCheck == nil then
- pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 853) --Hammer of Justice
- end
- if pvpdebuffCheck ~= nil then
- if (expire - GetTime()) >= 4 then
- return true
- else
- return false
- end
- else
- return false
- end
- else
- return false
- end
- end
Add Comment
Please, Sign In to add comment