9
3

VengefulArrow.lua 573 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Priest/Shaper/Channeler/VengefulArrow.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.21 09:11:31
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Requires bow
  10. return true
  11. end
  12. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  13. -- Inflicts 7 - 12 ranged damage on target
  14. if MaxVal ~= nil and MinVal < MaxVal then
  15. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  16. else
  17. SpellDamage(Target, DmgType, MinVal)
  18. end
  19. end