TendrilsofHorror.lua 831 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Defiler/TendrilsofHorror.lua
  3. Script Author : neatz09
  4. Script Date : 2020.03.24 07:03:47
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When damaged with a melee weapon this spell has a 8% chance to cast Tendrils of Fear on target's attacker. Lasts for 36.0 seconds.
  9. -- Decreases DPS of target by 15.2
  10. -- Decreases Haste of target by 12.1
  11. function cast(Caster, Target, Chance, Dps, Haste)
  12. AddProc(Target, 15, Chance)
  13. end
  14. function proc(Caster, Target, Type, Chance, Dps, Haste)
  15. if Type == 15 then
  16. Spell = GetSpell(5450, GetSpellTier())
  17. SetSpellDataIndex(Spell, 0, Dps)
  18. SetSpellDataIndex(Spell, 1, Haste)
  19. CastCustomSpell(Spell, Caster, Target)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end