9
3

ShieldBash.lua 516 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : ShieldBash.lua
  3. Script Purpose : Generic damage + stun script
  4. Script Author : John Adams
  5. Script Date : 2008.12.04
  6. --]]
  7. function cast(Caster, Target, DDType, MinDmg, MaxDmg)
  8. -- DD component
  9. if MaxDmg ~= nil and MinDmg < MaxDmg then
  10. SpellDamage(Target, DDType, math.random(MinDmg, MaxDmg))
  11. else
  12. SpellDamage(Target, DDType, MinDmg)
  13. end
  14. end
  15. function remove(Caster, Target, DDType, MinDmg, MaxDmg)
  16. --Apply Knockdown
  17. --CastSpell(Target, 5000, 1)
  18. end