9
3

HoldtheLine.lua 757 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/HoldtheLine.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.28 09:02:09
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Type, Hate)
  9. -- When damaged this spell has a 50% chance to cast Holding the Line on target's attacker.
  10. AddProc(Target, 1, 50)
  11. -- On a block this spell will cast Holding the Line on target's victim.
  12. AddProc(Target, 7, 100)
  13. end
  14. function proc(Caster, Target, Type, Hate)
  15. if Type == 1 then
  16. ProcHate(Caster, Target, Hate, "Holding the Line")
  17. end
  18. if Type == 7 then
  19. ProcHate(Caster, Target, Hate, "Holding the Line")
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end