9
3

WildSwing.lua 610 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Fighter/WildSwing.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 03:01:10
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Inflicts 5 - 8 melee damage on target
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  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. Say(Caster, "Facing Target Not Implemented.")
  17. end
  18. -- If facing target