9
3

CleaveFlesh.lua 661 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/CleaveFlesh.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.11 06:01:30
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, BonusAmt)
  9. -- Inflicts 64 - 107 disease damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Decreases WIS of target by 16.2
  16. AddSpellBonus(Target, 3, BonusAmt)
  17. end
  18. function remove(Caster, Target)
  19. RemoveSpellBonus(Target)
  20. end