WillowWisp.lua 902 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Priest/Druid/Warden/WillowWisp.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.05 09:09:22
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Interrupts targets in Area of Effect
  9. -- Decreases threat priority of targets in Area of Effect by 1 position
  10. -- Decreases Threat to targets in Area of Effect by 1,169
  11. -- Roots targets in Area of Effect
  12. -- If Target is not Epic
  13. function cast(Caster, Target, Hate)
  14. Interrupt(Caster,Target)
  15. Say(Caster, "Threat position not implemented.")
  16. AddHate(Caster, Target, Hate, 1)
  17. if not IsEpic(Target) then
  18. AddControlEffect(Target, 5)
  19. end
  20. if LastSpellAttackHit() then
  21. AddProc(Target, 1, 100)
  22. end
  23. end
  24. function proc(Caster, Target, Type, Hate)
  25. if Type == 1 then
  26. CancelSpell()
  27. end
  28. end
  29. function remove(Caster, Target)
  30. RemoveControlEffect(Target, 5)
  31. end