Holdup.lua 803 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Holdup.lua
  3. Script Purpose : Brigand Debuff + Snare
  4. Script Author : Zcoretri
  5. Script Date : 14.March.2014
  6. Script Notes :
  7. --]]
  8. function cast(Caster, Target, Slow, Mitigation)
  9. -- Debuff component
  10. AddSpellBonus(Target, 201, Mitigation)
  11. end
  12. function tick(Caster, Target, Slow, Mitigation)
  13. -- Snare component
  14. originalSpeed = GetSpeed(Target)
  15. pctChance = math.random(1, 100)
  16. --[[
  17. if pctChance => 5 then
  18. newSpeed = originalSpeed - (originalSpeed * Slow)
  19. if originalSpeed > newSpeed then
  20. SetSpeed(Target, newSpeed)
  21. end
  22. end
  23. --]]
  24. end
  25. function remove(Caster, Target, Slow, Mitigation)
  26. RemoveSpellBonus(Target)
  27. --SetSpeed(Target, originalSpeed)
  28. end