Silence.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/Silence.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.14 08:03:01
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMinVal, DoTMaxVal)
  9. -- Inflicts 71 - 87 mental damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Stifles target
  16. AddControlEffect(Target, 2)
  17. -- Epic targets gain an immunity to Stifle effects of 18.0 seconds and duration is reduced to 2.0 seconds.
  18. -- Resistibility increases against targets higher than level 29.
  19. end
  20. function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMinVal, DoTMaxVal)
  21. -- Inflicts 24 - 29 mental damage on target every second
  22. if DoTMaxVal ~= nil and DoTMinVal < DoTMaxVal then
  23. SpellDamage(Target, DoTType, math.random(DoTMinVal, DoTMaxVal))
  24. else
  25. SpellDamage(Target, DoTType, DoTMinVal)
  26. end
  27. end
  28. function remove(Caster, Target)
  29. RemoveControlEffect(Target, 2)
  30. end