BackAttack.lua 692 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Backstab.lua
  3. Script Purpose : Brigand Direct Damage + DoT
  4. Script Author : Zcoretri
  5. Script Date : 17.April.2010
  6. --]]
  7. function cast(Caster, Target, DmgType, MinDmg, MaxDmg, TickDmgType, TickDmg)
  8. -- DD component
  9. -- Add check for Caster being behind Target
  10. if MaxDmg ~= nil and MinDmg < MaxDmg then
  11. dmgAmount = math.random(MinDmg, MaxDmg)
  12. SpellDamage(Target, DmgType, dmgAmount)
  13. else
  14. SpellDamage(Target, DmgType, MinDmg)
  15. end
  16. end
  17. function tick(Caster, Target, DmgType, MinDmg, MaxDmg, TickDmgType, TickDmg)
  18. SpellDamage(Target, TickDmgType, TickDmg)
  19. end
  20. function remove(Caster, Target, DmgType, MinDmg, MaxDmg, TickDmgType, TickDmg)
  21. end