RagingBlow.lua 456 B

12345678910111213141516171819
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/RagingBlow.lua
  3. Script Author : Dello
  4. Script Date : 10/06/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, AddHate)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DmgType, MinVal)
  13. AddHate(Caster, Target)
  14. end
  15. end