Rupture.lua 538 B

12345678910111213141516171819
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/Rupture.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.23 09:11:30
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. function cast(Caster, Target, DDType, MinDmg, MaxDmg)
  10. -- Inflicts 3 - 10 melee damage on target
  11. if MaxDmg ~= nil and MinDmg < MaxDmg then
  12. SpellDamage(Target, DDType, math.random(MinDmg, MaxDmg))
  13. else
  14. SpellDamage(Target, DDType, MinDmg)
  15. end
  16. end