DivineInspiration.lua 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/DivineInspiration.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.05 11:12:59
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- On a hit this spell may cast Divine Strike on target of attack. Triggers about 1.6 times per minute.
  10. AddProc(Target, 3, 12.5, nil, 1)
  11. end
  12. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  13. if Type == 3 then
  14. -- Inflicts 17 - 28 divine damage on target
  15. if MaxVal ~= nil and MinVal < MaxVal then
  16. ProcDamage(Caster, Target, "Divine Strike", DmgType, math.random(MinVal, MaxVal))
  17. else
  18. ProcDamage(Caster, Target, "Divine Strike", DmgType, MinVal)
  19. end
  20. -- Inflicts 17 - 28 divine damage on target
  21. -- If target is undead
  22. Say(Caster, "Not Implemented: Bonus damage to undead")
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveProc(Target)
  27. end