9
3

DarkSiphoning.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. -- Decreases power of target encounter by 50 - 61 instantly and every 3 seconds
  9. -- Inflicts 117 - 218 poison damage on target encounter instantly and every 3 seconds
  10. -- Heals group members (AE) for 64 - 119 instantly and every 3 seconds
  11. -- Increases power of group members (AE) by 1.3% instantly and every 3 seconds
  12. -- This effect cannot be critically applied.
  13. function cast(Caster, Target, PotDebuffMin, PotDebuffMax, DoTType, DotMin, DotMax, HealMin, HealMax, Pwr)
  14. SpellHeal("Power", PotDebuffMin, PotDebuffMax)
  15. SpellDamage(Target, DoTType, DoTMin, DoTMax)
  16. local group = GetGroup(Caster)
  17. if group == nil then
  18. SpellHeal("Heal", HealMin, HealMax, Caster)
  19. SpellHealPct("Power", HealAmt, false, true, Caster, 1, true)
  20. else
  21. for k,v in ipairs(group) do
  22. SpellHeal("Power", HealMin, HealMax, v)
  23. SpellHealPct("Power", Pwr, false, true, v, 1, true)
  24. end
  25. end
  26. end
  27. function tick(Caster, Target, PotDebuffMin, PotDebuffMax, DoTType, DotMin, DotMax, HealMin, HealMax, Pwr)
  28. SpellHeal("Power", PotDebuffMin, PotDebuffMax)
  29. SpellDamage(Target, DoTType, DoTMin, DoTMax)
  30. local group = GetGroup(Caster)
  31. if group == nil then
  32. SpellHeal("Heal", HealMin, HealMax, Caster)
  33. SpellHealPct("Power", HealAmt, false, true, Caster, 1, true)
  34. else
  35. for k,v in ipairs(group) do
  36. SpellHeal("Power", HealMin, HealMax, v)
  37. SpellHealPct("Power", Pwr, false, true, v, 1, true)
  38. end
  39. end
  40. end