9
3

Emberstrike.lua 755 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/Emberstrike.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.09 08:03:38
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- You must be sneaking to use this ability.
  10. if IsStealthed(Caster) then
  11. return true
  12. else
  13. SendMessage(Caster, "You must be sneaking to use this ability.", "yellow")
  14. return false
  15. end
  16. end
  17. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  18. -- Inflicts 14 - 23 heat damage on target
  19. if MaxVal ~= nil and MinVal < MaxVal then
  20. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  21. else
  22. SpellDamage(Target, DmgType, MinVal)
  23. end
  24. end