OneHundredHandPunch.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Bruiser/OneHundredHandPunch.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.11 06:03:08
  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. if LastSpellAttackHit() then
  36. if MaxVal ~= nil and MinVal < MaxVal then
  37. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  38. else
  39. SpellDamage(Target, DmgType, MinVal)
  40. end
  41. end
  42. if LastSpellAttackHit() then
  43. if MaxVal ~= nil and MinVal < MaxVal then
  44. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  45. else
  46. SpellDamage(Target, DmgType, MinVal)
  47. end
  48. end
  49. if LastSpellAttackHit() then
  50. if MaxVal ~= nil and MinVal < MaxVal then
  51. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  52. else
  53. SpellDamage(Target, DmgType, MinVal)
  54. end
  55. end
  56. if LastSpellAttackHit() then
  57. if MaxVal ~= nil and MinVal < MaxVal then
  58. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  59. else
  60. SpellDamage(Target, DmgType, MinVal)
  61. end
  62. end
  63. end