9
3

GreyWind.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Spells/Priest/Shaman/GreyWind.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.03.15 06:03:43
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Applies Grey Winds. Lasts for 10.0 seconds.
  10. *Slows target by 33.4%
  11. *5% chance to dispel when target receives hostile action
  12. *5% chance to dispel when target takes damage
  13. *Inflicts 42 - 52 cold damage on target
  14. --]]
  15. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  16. Level = GetLevel(Caster)
  17. SpellLevel = 15
  18. Mastery = SpellLevel + 10
  19. StatBonus = GetInt(Caster) / 10
  20. if Level < Mastery then
  21. LvlBonus = Level - SpellLevel
  22. else LvlBonus = Mastery - SpellLevel
  23. end
  24. DmgBonus = math.floor(LvlBonus + StatBonus) * 2
  25. MinDmg = MinVal + DmgBonus
  26. MaxFmg = MaxVal + DmgBonus
  27. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  28. CastSpell(Target, 180021, 1, Caster)
  29. end