9
3

Bash.lua 772 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Bash.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 03:01:28
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Applies Knockdown on termination. Lasts for 2.5 seconds.
  10. -- Throws target back
  11. -- Blurs vision of target
  12. -- Stuns target
  13. -- Does not affect Epic targets
  14. -- Inflicts 14 - 23 crushing damage on target
  15. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  16. if MaxVal ~= nil and MinVal < MaxVal then
  17. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  18. else
  19. SpellDamage(Target, DmgType, MinVal)
  20. end
  21. Say(Caster, "Knockdown not implemented")
  22. end