123456789101112131415161718192021222324252627282930313233 |
- --[[
- Script Name : Spells/Commoner/DivineNobility.lua
- Script Author : neatz09
- Script Date : 2020.04.09 06:04:00
- Script Purpose :
- :
- --]]
- -- Heals caster for x - y instantly based on Clevel.
- function cast(Caster, Target, HealMin, HealMax, TickMin, TickMax)
- local Val1 = (GetLevel(Caster) * 1.08) * HealMin
- local Val2 = (GetLevel(Caster) * 1.08) * HealMax
- local Val3 = (GetLevel(Caster) * 1.08) * TickMin
- local Val4 = (GetLevel(Caster) * 1.08) * TickMax
- local HealAmt = randomFloat(Val1, Val2)
- local TickAmt = randomFloat2(Val3, Val4)
- SpellHeal("Heal", HealAmt)
- end
- function tick(Caster, Target, MinVal, MaxVal, TickMin, TickMax)
- SpellHeal("Heal", TickAmt)
- end
- function randomFloat(Val1, Val2)
- return Val1 + math.random() * (Val2 - Val1);
- end
- function randomFloat2(Val3, Val4)
- return Val3 + math.random() * (Val4 - Val3);
- end
|