9
3

RegeneratingSpores.lua 1009 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Priest/Druid/Warden/RegeneratingSpores.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.09 12:11:19
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- When damaged this spell has a 8% chance to cast Spores on target. Lasts for 10.0 seconds.
  10. -- Heals target for 31 - 38 instantly and every 2 seconds
  11. -- If over 50% Health
  12. -- Heals target for 62 - 75 instantly and every 2 seconds
  13. -- If under 50% Health
  14. function cast(Caster, Target, OverMin, OverMax, UnderMin, UnderMax)
  15. if GetHP(Target) > GetPCTOfHP(Target, 33) then
  16. SpellHeal("Heal", OverMin, OverMax)
  17. else
  18. SpellHeal("Heal", UnderMin, UnderMax)
  19. end
  20. end
  21. function tick(Caster, Target, OverMin, OverMax, UnderMin, UnderMax)
  22. if GetHP(Target) > GetPCTOfHP(Target, 33) then
  23. SpellHeal("Heal", OverMin, OverMax)
  24. else
  25. SpellHeal("Heal", UnderMin, UnderMax)
  26. end
  27. end