9
3

ThrustKick.lua 746 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/ThrustKick.lua
  3. Script Author : Dello
  4. Script Date : 2014.07.10 06:07:34
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DmgType, MinVal)
  13. end
  14. if not IsEpic(Target) then
  15. AddControlEffect(Target, 4)
  16. BlurVision(Target, 1.0)
  17. Knockback(Caster, Target, 1500)
  18. AddSpellTimer(1500, "RemoveKnockdown")
  19. end
  20. end
  21. function RemoveKnockdown(Caster, Target)
  22. RemoveControlEffect(Target, 4)
  23. BlurVision(Target, 0.0)
  24. end