9
3

GrimHarbinger.lua 1005 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/GrimHarbinger.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.08 05:01:42
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- On a melee hit this spell may cast Grim Strike on target of attack. Triggers about 3.0 times per minute.
  10. AddProc(Target, 3, 15.0)
  11. end
  12. function proc(Caster, Target, Type, DmgType, DmgMin, DmgMax, pctHealMin, pctHealMax)
  13. if Type == 3 then
  14. -- Inflicts 37 - 62 disease damage on target
  15. ProcDamage(Caster, Target, "Grim Strike", DmgType, DmgMin, DmgMax)
  16. -- Heals caster for 15 - 25
  17. -- This effect cannot be critically applied.
  18. -- The healing of this spell cannot be modified except by direct means
  19. SpellHeal("Heal", GetPCTOfHP(Caster, pctHealMin), GetPCTOfHP(Caster, pctHealMax),Caster, 2, 1)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end