9
3

DeathMark.lua 911 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/DeathMark.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.04.17 05:04:57
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, Triggers)
  9. -- When damaged with a melee weapon this spell will cast Agonizing Pain on target.
  10. AddProc(Target, 4, 5)
  11. -- Grants a total of 5 triggers of the spell.
  12. SetSpellTriggerCount(Triggers, 1)
  13. end
  14. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, Triggers)
  15. -- When damaged with a melee weapon this spell will cast Agonizing Pain on target.
  16. if Type == 4 then
  17. -- Inflicts 79 - 133 piercing damage on target
  18. ProcDamage(Caster, Target, "Agonizing Pain", DmgType, MinVal, MaxVal)
  19. RemoveTriggerFromSpell(1)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end