Tempest.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Priest/Druid/Fury/Tempest.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.14 02:01:11
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 7 - 8 cold damage on target instantly and every 2 seconds
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Inflicts 7 - 8 cold damage on target instantly and every 2 seconds
  16. -- If target is elemental
  17. Say(Caster, "Not Implemented: Bonus damage to elementals")
  18. end
  19. function tick(Caster, Target, DmgType, MinVal, MaxVal)
  20. -- Inflicts 7 - 8 cold damage on target instantly and every 2 seconds
  21. if MaxVal ~= nil and MinVal < MaxVal then
  22. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  23. else
  24. SpellDamage(Target, DmgType, MinVal)
  25. end
  26. -- Inflicts 7 - 8 cold damage on target instantly and every 2 seconds
  27. -- If target is elemental
  28. Say(Caster, "Not Implemented: Bonus damage to elementals")
  29. end