9
3

CelestialBloom.lua 506 B

12345678910111213141516171819
  1. --[[
  2. Script Name : Spells/Commoner/CelestialBloom.lua
  3. Script Author : neatz09
  4. Script Date : 2020.04.10 08:04:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, HealMin, HealMax)
  9. local Val1 = (GetLevel(Caster) * 1.08) * HealMin
  10. local Val2 = (GetLevel(Caster) * 1.08) * HealMax
  11. local HealAmt = randomFloat(Val1, Val2)
  12. SpellHeal("Heal", HealAmt)
  13. end
  14. function randomFloat(Val1, Val2)
  15. return Val1 + math.random() * (Val2 - Val1);
  16. end