fork(2) download
  1. local DSthis = {
  2.  
  3. 5782, -- Fear
  4.  
  5. 118, -- Polymorph
  6.  
  7. 20066, -- repentance
  8.  
  9. 339, -- Druid root
  10.  
  11. 51514, -- Hex
  12.  
  13. 33786, -- Cyclone
  14.  
  15. }
  16.  
  17. local grounding = 0
  18.  
  19. if UnitExists("arena1") then
  20. for i=1, #DSthis do
  21. if UnitBuffID("arena1", DSthis[i]) ~= nil
  22. and PQR_IsOutOfSight("arena1", 0.1) == false
  23. and IsSpellInRange("Dark Simulacrum", "arena1") == 1 then
  24. CastSpellByID(77606, "arena1")
  25. end
  26. end
  27. end
  28.  
  29. if UnitExists("arena2") then
  30. for i=1, #DSthis do
  31. if UnitBuffID("arena2", DSthis[i]) ~= nil
  32. and PQR_IsOutOfSight("arena2", 0.1) == false
  33. and IsSpellInRange("Dark Simulacrum", "arena2") == 1 then
  34. CastSpellByID(77606, "arena2")
  35. end
  36. end
  37. end
  38.  
  39. if UnitExists("arena3") then
  40. for i=1, #DSthis do
  41. if UnitBuffID("arena3", DSthis[i]) ~= nil
  42. and PQR_IsOutOfSight("arena3", 0.1) == false
  43. and IsSpellInRange("Dark Simulacrum", "arena3") == 1 then
  44. CastSpellByID(77606, "arena3")
  45. end
  46. end
  47. end
  48.  
  49. if UnitExists("Focus") then
  50. for i=1, #DSthis do
  51. if UnitBuffID("Focus", DSthis[i]) ~= nil
  52. and PQR_IsOutOfSight("Focus", 0.1) == false
  53. and IsSpellInRange("Dark Simulacrum", "Focus") == 1 then
  54. CastSpellByID(77606, "focus")
  55. end
  56. end
  57. end
Runtime error #stdin #stdout 0.02s 2492KB
stdin
Standard input is empty
stdout
Standard output is empty