FiveRings.lua 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/FiveRings.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.13 07:01:22
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 34 - 57 melee damage on target
  10. -- Inflicts 34 - 57 melee damage on target
  11. -- Inflicts 34 - 57 melee damage on target
  12. -- Inflicts 34 - 57 melee damage on target
  13. -- Inflicts 34 - 57 melee damage on target
  14. if MaxVal ~= nil and MinVal < MaxVal then
  15. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  16. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  17. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  18. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  19. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  20. else
  21. SpellDamage(Target, DmgType, MinVal)
  22. SpellDamage(Target, DmgType, MinVal)
  23. SpellDamage(Target, DmgType, MinVal)
  24. SpellDamage(Target, DmgType, MinVal)
  25. SpellDamage(Target, DmgType, MinVal)
  26. end
  27. end