SacredSustenanceFood.lua 736 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : ItemScripts/SacredSustenanceFood.lua
  3. Script Author : dorbin
  4. Script Date : 2024.03.22 11:03:12
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Begin Item Effects
  9. * Increases Out-of-Combat Health Regeneration of target by 2.0
  10. * This effect suspends during combat
  11. End Item Effects--]]
  12. function cast(Item, Player)
  13. Spell = GetSpell(5462)
  14. Regenz = 3.0
  15. newDuration = 18000
  16. SetSpellData(Spell, "duration1", newDuration)
  17. SetSpellData(Spell, "duration2", newDuration)
  18. SetSpellDataIndex(Spell, 0, Regenz)
  19. SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regenz)
  20. CastCustomSpell(Spell, Player, Player)
  21. end