DarkSiphoning.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/DarkSiphoning.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.12 12:10:50
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Decreases power of target encounter by 50 - 61 instantly and every 3 seconds
  10. -- Inflicts 117 - 218 poison damage on target encounter instantly and every 3 seconds
  11. -- Heals group members (AE) for 64 - 119 instantly and every 3 seconds
  12. -- Increases power of group members (AE) by 1.3% instantly and every 3 seconds
  13. -- This effect cannot be critically applied.
  14. function cast(Caster, Target, PotDebuffMin, PotDebuffMax, DoTType, DotMin, DotMax, HealMin, HealMax, pctHealMin, PctHealMax)
  15. SpellHeal("Power", PotDebuffMin, PotDebuffMax)
  16. SpellDamage(Target, DoTType, DoTMin, DoTMax)
  17. if group == nil then
  18. SpellHeal("Heal", HealMin, HealMax,Caster)
  19. else
  20. for k,v in ipairs(GetGroup(Spawn)) do
  21. SpellHeal("Power", HealMin, HealMax, v)
  22. end
  23. end
  24. if group == nil then
  25. SpellHeal("Heal", pctHealMin, pctHealMax, Caster)
  26. else
  27. for k,v in ipairs(GetGroup(Spawn)) do
  28. SpellHeal("Heal", GetPCTOfHP(Caster, pctHealMin), SpellHeal("Heal", GetPCTOfHP(Caster, pctHealMax), v, 2, 1))
  29. end
  30. end
  31. end
  32. function tick(Caster, Target, PotDebuffMin, PotDebuffMax, DoTType, DotMin, DotMax, HealMin, HealMax, pctHealMin, pctHealMax)
  33. SpellHeal("Power", PotDebuffMin, PotDebuffMax)
  34. SpellDamage(Target, DoTType, DoTMin, DoTMax)
  35. if group == nil then
  36. SpellHeal("Heal", HealMin, HealMax,Caster)
  37. else
  38. for k,v in ipairs(GetGroup(Spawn)) do
  39. SpellHeal("Power", HealMin, HealMax, v)
  40. end
  41. end
  42. if group == nil then
  43. SpellHeal("Heal", pctHealMin, pctHealMax, Caster)
  44. else
  45. for k,v in ipairs(GetGroup(Spawn)) do
  46. SpellHeal("Heal", GetPCTOfHP(Caster, pctHealMin), SpellHeal("Heal", GetPCTOfHP(Caster, pctHealMax), v, 2, 1))
  47. end
  48. end
  49. end