9
3

MakeshiftArrows.lua 733 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/MakeshiftArrows.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 04:03:05
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- Grants a total of 60 triggers of the spell.
  10. SetSpellTriggerCount(60, 1)
  11. -- On a ranged hit this spell will cast Makeshift Arrow on target of attack.
  12. AddProc(Caster, 18, 100)
  13. end
  14. function proc(Caster, Target, Type, DmgType, DmgAmt)
  15. -- Inflicts 71 piercing damage on target
  16. if Type == 18 then
  17. ProcDamage(Caster, Target, "Makeshift Arrow", DmgType, DmgAmt)
  18. RemoveTriggerFromSpell(1)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Caster)
  23. end