9
3

HolyCircle.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/HolyCircle.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.05 09:12:58
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, HealVal)
  9. -- Inflicts 25 - 43 divine damage on targets in Area of Effect
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Heals group members (AE) for 13
  16. -- This effect cannot be critically applied.
  17. -- The healing of this spell cannot be modified except by direct means
  18. local group = GetGroup(Caster)
  19. if group == nil then
  20. SpellHeal("Heal", HealVal, HealVal, Caster)
  21. else
  22. for key,value in pairs(group) do
  23. if value ~= nil then
  24. if GetDistance(Caster, value) <= 5 then
  25. SpellHeal("Heal", HealVal, HealVal, value)
  26. end
  27. end
  28. end
  29. end
  30. end