DiversionBlade.lua 490 B

1234567891011121314151617
  1. --[[
  2. Script Name : BumRush.lua
  3. Script Purpose : Brigand Direct Damage + Interrupt
  4. Script Author : Zcoretri
  5. Script Date : 17.April.2010
  6. --]]
  7. function cast(Caster, Target, DmgType, MinDmg, MaxDmg)
  8. -- Add check for Caster is flanking or behind Target
  9. if MaxDmg ~= nil and MinDmg < MaxDmg then
  10. dmgAmount = math.random(MinDmg, MaxDmg)
  11. SpellDamage(Target, DmgType, dmgAmount)
  12. else
  13. SpellDamage(Target, DmgType, MinDmg)
  14. end
  15. --Interrupt(Target)
  16. end