9
3

BodyCheck.lua 782 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/BodyCheck.lua
  3. Script Author : Dello
  4. Script Date : 11/06/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DDType, MinDmg, MaxDmg)
  9. -- Inflicts 6 - 10 crushing damage on target
  10. if MaxDmg ~= nil and MinDmg < MaxDmg then
  11. SpellDamage(Target, DDType, math.random(MinDmg, MaxDmg))
  12. else
  13. SpellDamage(Target, DDType, MinDmg)
  14. end
  15. if not IsEpic(Target) then
  16. Knockback(Caster, Target, 4000, 150)
  17. AddControlEffect(Target, 4)
  18. end
  19. -- Resistibility increases against targets higher than level 31.
  20. end
  21. function remove(Caster, Target)
  22. --RemoveKnockback(Caster, Target)
  23. RemoveControlEffect(Target, 4)
  24. end