VeliumWinds.lua 639 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Mystic/VeliumWinds.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.19 09:11:17
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinDmgVal, MaxDmgVal, SpellID)
  9. Say(Caster, "Missing slow components")
  10. -- Missing Slows Target Component
  11. -- Damage component
  12. if MaxDmg ~= nil and MinDmg < MaxDmg then
  13. dmgAmount = math.random(MinDmg, MaxDmg)
  14. SpellDamage(Target, DmgType, dmgAmount)
  15. end
  16. -- Applies Touch of the Grey. Lasts for 10.0 seconds.
  17. CastSpell(Target, 3000, 1, Caster)
  18. end