FeralTenacity.lua 990 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Priest/Druid/Fury/FeralTenacity.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.27 11:10:43
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On death this spell will cast Feral Tenacity on target. Lasts for 24.0 seconds.
  9. -- Heals target for 256
  10. -- Heals target for 64 every 2 seconds
  11. -- Increases AGI of target by 28.6
  12. -- Grants a total of 1 trigger of the spell.
  13. function cast(Caster, Target, HealAmt, TickAmt, Agi, Triggers)
  14. AddProc(Target, 13, 100)
  15. SetSpellTriggerCount(Triggers, 1)
  16. end
  17. function proc(Caster, Target, Type, HealAmt, TickAmt, Agi, Triggers)
  18. if Type == 13 then
  19. Spell = GetSpell(5451, GetSpellTier())
  20. SetSpellDataIndex(Spell, 0, HealAmt)
  21. SetSpellDataIndex(Spell, 1, TickAmt)
  22. SetSpellDataIndex(Spell, 2, Agi)
  23. CastCustomSpell(Spell, Caster, Target)
  24. RemoveTriggerFromSpell()
  25. end
  26. end
  27. function remove(Caster, Target)
  28. RemoveProc(Target)
  29. end