DoubleDagger.lua 624 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : BatteryAndAssault.lua
  3. Script Purpose : Brigand Direct Damage
  4. Script Author : Zcoretri
  5. Script Date : 17.April.2010
  6. --]]
  7. function cast(Caster, Target, DmgType, MinDmg, MaxDmg)
  8. -- Add check for if first attack misses
  9. --if AttackFails == false then
  10. if MaxDmg ~= nil and MinDmg < MaxDmg then
  11. dmgAmount = math.random(MinDmg, MaxDmg)
  12. SpellDamage(Target, DmgType, dmgAmount)
  13. SpellDamage(Target, DmgType, dmgAmount)
  14. else
  15. SpellDamage(Target, DmgType, MinDmg)
  16. SpellDamage(Target, DmgType, MinDmg)
  17. end
  18. --end
  19. end