9
3

IceComet.lua 828 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/IceComet.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.08 03:10:40
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 2837 - 5269 cold damage on target
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. -- Applies Knockdown on termination. Lasts for 1.5 seconds.
  12. -- Throws target back
  13. -- Blurs vision of target
  14. -- Stuns target
  15. -- Does not affect Epic targets
  16. if not IsEpic(Target) then
  17. Knockback(Caster, Target, 4000)
  18. AddControlEffect(Target, 4)
  19. BlurVision(Target, 1.0)
  20. AddSpellTimer(1500, "RemoveStunBlur")
  21. end
  22. end
  23. function RemoveStunBlur(Caster, Target)
  24. RemoveControlEffect(Target, 4)
  25. BlurVision(Target, 0)
  26. end