9
3

Knockdown.lua 689 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Commoner/Knockdown.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.12 12:11:15
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Apply Knockdown
  9. -- Throws target back
  10. -- Stuns target
  11. -- Blurs vision of target
  12. -- Except Epic
  13. function cast(Caster, Target, Timer)
  14. if not IsEpic(Target) then
  15. --Knockback(Caster, Target, Timer)
  16. PlayAnimation(Target, 72)
  17. AddControlEffect(Target, 4)
  18. BlurVision(Target, 1.0)
  19. AddSpellTimer(Timer, "RemoveStunBlur")
  20. end
  21. end
  22. function RemoveStunBlur(Caster, Target)
  23. RemoveControlEffect(Target, 4)
  24. BlurVision(Target, 0)
  25. end