eq2emu-content/Spells/Commoner/CelestialBloom.lua
2024-10-26 11:37:28 +00:00

19 lines
No EOL
506 B
Lua
Executable file

--[[
Script Name : Spells/Commoner/CelestialBloom.lua
Script Author : neatz09
Script Date : 2020.04.10 08:04:48
Script Purpose :
:
--]]
function cast(Caster, Target, HealMin, HealMax)
local Val1 = (GetLevel(Caster) * 1.08) * HealMin
local Val2 = (GetLevel(Caster) * 1.08) * HealMax
local HealAmt = randomFloat(Val1, Val2)
SpellHeal("Heal", HealAmt)
end
function randomFloat(Val1, Val2)
return Val1 + math.random() * (Val2 - Val1);
end