9
3

Knockdown.lua 646 B

1234567891011121314151617181920212223242526
  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. AddControlEffect(Target, 4)
  17. BlurVision(Target, 1.0)
  18. AddSpellTimer(Timer, "RemoveStunBlur")
  19. end
  20. end
  21. function RemoveStunBlur(Caster, Target)
  22. RemoveControlEffect(Target, 4)
  23. BlurVision(Target, 0)
  24. end