Subterfuge.lua 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Spells/Priest/Druid/Subterfuge.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.30 05:11:22
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Decreases Threat to targets in Area of Effect by 1,206
  10. *Roots targets in Area of Effect
  11. *Epic targets gain an immunity to Root and Ability attacks will hit for their maximum damage. effects of 27.0 seconds and duration is reduced to 3.0 seconds.
  12. --]]
  13. function cast(Caster, Target, Hate)
  14. AddHate(Caster, Target, Hate, 1)
  15. SetSpeedMultiplier(Target, 0)
  16. if IsEpic then
  17. AddTimer(Target, 3000, "endroot")
  18. end
  19. end
  20. function endroot(Caster, Target)
  21. --Casts RootImmunity on target.
  22. Spell = GetSpell(5504, GetSpellTier())
  23. CastCustomSpell(Spell, Caster, Target)
  24. --Cancels Subterfuge
  25. CancelSpell()
  26. end
  27. function remove(Caster, Target)
  28. SetSpeedMultiplier(Target, 1.0)
  29. end