DashingSwathe.lua 1005 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/DashingSwathe.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.16 02:12:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 159 - 266 melee damage on targets in Area of Effect
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Applies Knockdown. Lasts for 1.5 seconds.
  16. -- Throws target back
  17. -- Stuns target
  18. -- Blurs vision of target
  19. -- Does not affect Epic targets
  20. if not IsEpic(Target) then
  21. Knockback(Caster, Target, 1500)
  22. AddControlEffect(Target, 4)
  23. BlurVision(Target, 1.0)
  24. AddSpellTimer(1500, "RemoveEffects")
  25. end
  26. end
  27. function RemoveEffects(Caster, Target)
  28. RemoveControlEffect(Target, 4)
  29. BlurVision(Target, 0)
  30. end