9
3

Vengeance.lua 763 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Inquisitor/Vengeance.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.04 05:10:46
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, DmgVal)
  9. AddProc(Target, 16, 100)
  10. -- Grants a total of 5 triggers of the spell.
  11. SetSpellTriggerCount(5, 1)
  12. end
  13. function proc(Caster, Target, Type, DmgType, DmgVal)
  14. -- On a melee hit this spell will cast Vengeance on caster.
  15. if Type == 16 then
  16. -- -- Inflicts 237 divine damage on target
  17. ProcDamage(Caster, Target, "Vengeance", Type, DmgType, DmgVal)
  18. RemoveTriggerFromSpell(1)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end