DivineVengeance.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/DivineVengeance.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.06 05:12:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType1, MinVal1, MaxVal1, DmgType2, MinVal2, MaxVal2, DmgType3, MinVal3, MaxVal3)
  9. -- Inflicts 20 - 33 divine damage on target
  10. if MaxVal1 ~= nil and MinVal1 < MaxVal1 then
  11. SpellDamage(Target, DmgType1, math.random(MinVal1, MaxVal1))
  12. else
  13. SpellDamage(Target, DmgType1, MinVal1)
  14. end
  15. -- Applies Glorious Strike on termination. Lasts for 2.0 seconds.
  16. -- Stuns target
  17. -- If Target is not Epic
  18. Say(Caster, "Not Implemented: Stun and bonus damage to undead")
  19. -- Inflicts 47 - 79 divine damage on target
  20. if MaxVal2 ~= nil and MinVal2 < MaxVal2 then
  21. ProcDamage(Caster, Target, "Glorious Strike", DmgType2, math.random(MinVal2, MaxVal2))
  22. else
  23. ProcDamage(Caster, Target, "Glorious Strike", DmgType2, MinVal2)
  24. end
  25. -- Inflicts 41 - 68 divine damage on target
  26. -- If target is undead
  27. end
  28. function remove(Caster, Target, DmgType1, MinVal1, MaxVal1, DmgType2, MinVal2, MaxVal2, DmgType3, MinVal3, MaxVal3)
  29. end