18 lines
544 B
Lua
18 lines
544 B
Lua
|
--[[
|
||
|
Script Name : ItemScripts/BarleyMaltedMilk.lua
|
||
|
Script Purpose :
|
||
|
Script Author : Neatz09
|
||
|
Script Date : 1/31/2021
|
||
|
Script Notes :
|
||
|
--]]
|
||
|
|
||
|
function cast(Item, Player)
|
||
|
Spell = GetSpell(5463)
|
||
|
Regenz = 15.0
|
||
|
newDuration = 32400
|
||
|
SetSpellData(Spell, "duration1", newDuration)
|
||
|
SetSpellData(Spell, "duration2", newDuration)
|
||
|
SetSpellDataIndex(Spell, 0, Regenz)
|
||
|
SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Power Regeneration of target by " .. Regenz)
|
||
|
CastCustomSpell(Spell, Player, Player)
|
||
|
end
|