BlessedWeapon.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/BlessedWeapon.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.06 12:12:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- On a melee hit this spell may cast Glorious Strike on target of attack. Lasts for 2.0 seconds. Triggers about 1.6 times per minute.
  10. AddProc(Target, 3, 12.5)
  11. Say(Caster, "Not Implemented: stun and bonus damage to undead")
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, bonusDmgType, bonusDmgMin, bonusDmgMax)
  14. if Type == 3 then
  15. -- Inflicts 43 - 72 divine damage on target
  16. if MaxVal ~= nil and MinVal < MaxVal then
  17. ProcDamage(Caster, Target, "Glorious Strike", DmgType, math.random(MinVal, MaxVal))
  18. else
  19. ProcDamage(Caster, Target, "Glorious Strike", DmgType, MinVal)
  20. end
  21. -- Inflicts 37 - 62 divine damage on target
  22. -- If target is undead
  23. --[[
  24. if undead then
  25. if bonusDmgMax ~= nil and bonusDmgMin < bonusDmgMax then
  26. ProcDamage(Caster, Target, "Glorious Strike", bonusDmgType, math.random(bonusDmgMin, bonusDmgMax))
  27. else
  28. ProcDamage(Caster, Target, "Glorious Strike", bonusDmgType, bonusDmgMin)
  29. end
  30. end
  31. --]]
  32. -- Stuns target
  33. -- If Target is not Epic
  34. end
  35. end
  36. function remove(Caster, Target)
  37. RemoveProc(Target)
  38. end