Guest User

Untitled

a guest
Apr 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. if UnitFactionGroup("player") == "Alliance" then
  2. if GetInventoryItemID("player", 14) == 70394 then
  3. myTrinket = GetItemCooldown(70394)
  4. else
  5. myTrinket = nil
  6. end
  7. else
  8. if GetInventoryItemID("player", 14) == 70394 then
  9.  
  10. myTrinket = GetItemCooldown(70394)
  11. else
  12. myTrinket = nil
  13. end
  14. end
  15.  
  16. if myTrinket ~= nil then
  17. --check if we have a debuff
  18. if myTrinket == 0 then
  19. pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 118) --Polymorph
  20. if pvpdebuffCheck == nil then
  21. pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 605) --Mind Control
  22. end
  23. if pvpdebuffCheck == nil then
  24. pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 51514) --Hex
  25. end
  26. if pvpdebuffCheck == nil then
  27. pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 6358) --Seduction
  28. end
  29. if pvpdebuffCheck == nil then
  30. pvpdebuffCheck, _, _, _, _, _, expire = UnitDebuffID("player", 853) --Hammer of Justice
  31. end
  32.  
  33. if pvpdebuffCheck ~= nil then
  34. if (expire - GetTime()) >= 4 then
  35. return true
  36. else
  37. return false
  38. end
  39. else
  40. return false
  41. end
  42. else
  43. return false
  44. end
  45. end
Add Comment
Please, Sign In to add comment