9
3

RejuvenationX.lua 677 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Mystic/Rejuvenation.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.19 08:11:16
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, BuffAmt, MinHealAmt, MaxHealAmt)
  9. -- Buff component (health)
  10. AddSpellBonus(Target, 606, BuffAmt)
  11. -- Heal component
  12. if MaxHeal ~= nil and MinHeal < MaxHeal then
  13. healAmount = math.random(MinHeal, MaxHeal)
  14. ModifyHP(Target, healAmount)
  15. else
  16. ModifyHP(Target, MinHealAmt)
  17. end
  18. end
  19. function remove(Caster, Target, BuffAmt, MinHealAmt, MaxHealAmt)
  20. -- Remove buff (health)
  21. RemoveSpellBonus(Target)
  22. end