9
3

TerrorChant.lua 811 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Defiler/TerrorChant.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.13 04:03:17
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Hate)
  9. -- Decreases Threat to targets in Area of Effect by 323
  10. AddHate(Caster, Target, Hate)
  11. -- Decreases threat priority of targets in Area of Effect by 1 position
  12. -- Makes targets in Area of Effect afraid
  13. -- If Target is not Epic
  14. -- 30% chance to dispel when target takes damage
  15. if not IsEpic(Target) then
  16. AddControlEffect(Target, 6)
  17. AddProc(Target, 2, 30.0)
  18. end
  19. end
  20. function proc(Caster, Target, Type)
  21. if Type == 2 then
  22. CancelSpell()
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveControlEffect(Target, 6)
  27. end