9
3

HeroicDash.lua 942 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/HeroicDash.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.06 07:12:55
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, Hate)
  10. -- Inflicts 19 - 33 divine damage on target
  11. if MaxVal ~= nil and MinVal < MaxVal then
  12. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  13. else
  14. SpellDamage(Target, DmgType, MinVal)
  15. end
  16. -- Increases Threat to target by 302
  17. AddHate(Caster, Target, Hate, 1)
  18. -- Applies Knockdown. Lasts for 2.5 seconds.
  19. -- Blurs vision of target
  20. -- Throws target back
  21. -- Stuns target
  22. -- Does not affect Epic targets
  23. if not IsEpic(Target) then
  24. Knockback(Caster, Target, 2500)
  25. Say(Caster, "Not Implemented: stun and vision")
  26. end
  27. end