CripplingShroud.lua 734 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Commoner/CripplingShroud.lua
  3. Script Author : neatz09
  4. Script Date : 2020.04.09 08:04:38
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage received this spell has a 5% chance to cast Hasten on caster. Lasts for 30.0 seconds.
  9. -- Increases Haste of target by x - y Based on CLevel
  10. function cast(Caster, Target, Triggers)
  11. Say(Caster, "need to add hasten to the DB")
  12. AddProc(Target, 15, 5, nil, 1)
  13. SetSpellTriggerCount(Triggers, 1)
  14. end
  15. function proc(Caster, Target, Type, Triggers)
  16. CastSpell(Caster, 2002, 1)
  17. Say(Caster, "need to add hasten to the DB")
  18. RemoveTriggerFromSpell(1)
  19. end
  20. function remove(Caster, Target)
  21. RemoveProc(Target)
  22. end