9
3

VerliensKeenofDespair.lua 975 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/VerliensKeenofDespair.lua
  3. Script Author : Neatz09
  4. Script Date : 9/18/2020
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, SlowAmt, HostileChance, DmgChance, DebuffAmt)
  9. local Slow = 100 - SlowAmt
  10. local Spell = GetSpellID()
  11. -- Slows target
  12. -- chance to dispel when target receives hostile action
  13. -- chance to dispel when target takes damage
  14. -- Decreases Mitigation of target vs noxious damage
  15. AddSpellBonus(Target, 202, DebuffAmt)
  16. SetSpeedMultiplier(Target, Slow)
  17. AddProc(Target, 1, HostileChance)
  18. AddProc(Target, 15, DmgChance)
  19. end
  20. function proc(Caster, Target, Type, SlowAmt, HostileChance, DmgChance, DebuffAmt)
  21. if (Type == 1 or type == 15) and HasSpellEffect(Target, Spell) then
  22. SetSpeedMultiplier(Target, 1)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Target)
  27. RemoveProc(Target)
  28. SetSpeedMultiplier(Target, 1)
  29. end