SavageAssault.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Bruiser/SavageAssault.lua
  3. Script Author : Dello
  4. Script Date : 10/07/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DmgType, MinVal)
  13. end
  14. if LastSpellAttackHit() then
  15. if MaxVal ~= nil and MinVal < MaxVal then
  16. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  17. else
  18. SpellDamage(Target, DmgType, MinVal)
  19. end
  20. end
  21. if LastSpellAttackHit() then
  22. if MaxVal ~= nil and MinVal < MaxVal then
  23. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  24. else
  25. SpellDamage(Target, DmgType, MinVal)
  26. end
  27. end
  28. if LastSpellAttackHit() then
  29. if MaxVal ~= nil and MinVal < MaxVal then
  30. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  31. else
  32. SpellDamage(Target, DmgType, MinVal)
  33. end
  34. end
  35. end