SacredSustenanceWater.lua 697 B

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