LightningFists.lua 728 B

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