BlessedWeapon.lua 696 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/BlessedWeapon.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 04:11:50
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a melee hit this spell may cast Blessed Strike on target of attack. Triggers about 2.0 times per minute.
  9. -- Inflicts 21 - 35 divine damage on target
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal, Chance)
  11. AddProc(Target, 3, Chance)
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, Chance)
  14. if Type == 3 then
  15. ProcDamage(Caster, Target, "Blessed Strike", DmgType, MinVal, MaxVal)
  16. end
  17. end
  18. function remove(Caster, Target)
  19. RemoveProc(Target)
  20. end