LightningPalm.lua 770 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/LightningPalm.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.11 07:03:52
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Grants a total of 8 triggers of the spell.
  10. SetSpellTriggerCount(8, 1)
  11. -- On a melee hit this spell will cast Jolting Strike on target of attack.
  12. AddProc(Target, 3, 100)
  13. end
  14. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  15. if Type == 3 then
  16. -- Inflicts 13 - 22 magic damage on target
  17. ProcDamage(Caster, Target, "Jolting Strike", DmgType, MinVal, MaxVal)
  18. RemoveTriggerFromSpell(1)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end