AncientWrath.lua 817 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/AncientWrath.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.06 08:12:08
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Stuns targets in Area of Effect
  10. -- If Target is not Epic
  11. if not IsEpic(Target) then
  12. AddControlEffect(Target, 4)
  13. end
  14. -- Inflicts 66 - 110 divine damage on targets in Area of Effect
  15. if MaxVal ~= nil and MinVal < MaxVal then
  16. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  17. else
  18. SpellDamage(Target, DmgType, MinVal)
  19. end
  20. -- Resistibility increases against targets higher than level 29.
  21. end
  22. function remove(Caster, Target)
  23. RemoveControlEffect(Target, 4)
  24. end