eq2emu-content/ItemScripts/SacredSustenanceFood.lua
2024-10-26 11:37:28 +00:00

25 lines
736 B
Lua

--[[
Script Name : ItemScripts/SacredSustenanceFood.lua
Script Author : dorbin
Script Date : 2024.03.22 11:03:12
Script Purpose :
:
--]]
--[[ Begin Item Effects
* Increases Out-of-Combat Health Regeneration of target by 2.0
* This effect suspends during combat
End Item Effects--]]
function cast(Item, Player)
Spell = GetSpell(5462)
Regenz = 3.0
newDuration = 18000
SetSpellData(Spell, "duration1", newDuration)
SetSpellData(Spell, "duration2", newDuration)
SetSpellDataIndex(Spell, 0, Regenz)
SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regenz)
CastCustomSpell(Spell, Player, Player)
end