Advertisement
horato

demo

May 20th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. if vImmo==nil then
  2. vImmo=0
  3. end
  4. if ({UnitCastingInfo("player")})[1]=="Immolate" and vImmots==nil then
  5. vImmo=1
  6. vImmots=GetTime()
  7. end
  8.  
  9. if vImmo==1 and GetTime()-vImmots>2 then
  10. vImmo=0
  11. vImmots=nil
  12. end
  13.  
  14. if opener==nil then
  15. opener=false
  16. CastSpellByName("Shadow Bolt");
  17. end
  18.  
  19. if UnitGUID("pettarget") ~= nil and UnitGUID("target") ~= nil then
  20. if UnitGUID("pettarget") ~= UnitGUID("target") then
  21. PetAttack();
  22. end
  23. end
  24.  
  25. if UnitHealth("player") < 3000 then
  26. RunMacroText("/use Fel Healthstone");
  27. end
  28.  
  29. if UnitHealth("player") > 7000 and (UnitPower("Player") < 3000 or not UnitBuff("player", "Life Tap")) then
  30. CastSpellByName("Life Tap")
  31. end
  32.  
  33. if UnitHealth("target")>5000 then
  34. local i=1
  35. while(i<=40) do
  36. local a={UnitDebuff("target",i)};
  37. if a[1]=="Corruption" and a[8]=="player" and a[7]-GetTime()>0 then
  38. break
  39. else
  40. i=i+1
  41. end
  42. end;
  43. if i>40 and GetSpellCooldown("Corruption")==0 then
  44. CastSpellByName("Corruption")
  45. end
  46. end
  47.  
  48. if UnitHealth("target")>5000 then
  49. local immo=({GetSpellInfo("Immolate")})[7]/1000;
  50. local i=1
  51. while(i<=40) do
  52. local a={UnitDebuff("target",i)};
  53. if a[1]=="Immolate" and a[8]=="player" and a[7]-GetTime()>immo then
  54. break
  55. else
  56. i=i+1
  57. end
  58. end;
  59. if i>40 and vImmo==0 and GetSpellCooldown("Immolate")==0 then
  60. CastSpellByName("Immolate")
  61. end
  62. end
  63.  
  64. if UnitBuff("player", "Decimation") then
  65. CastSpellByName("Soul Fire")
  66. elseif UnitBuff("player", "Molten Core") then
  67. CastSpellByName("Incinerate")
  68. else
  69. CastSpellByName("Shadow Bolt")
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement