ArcaneChalice.lua 560 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : Spells/Commoner/ArcaneChalice.lua
  3. Script Author : neatz09
  4. Script Date : 2020.04.10 08:04:01
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increase Power of Group Member by x - y based on Clevel
  9. function cast(Caster, Target, MinVal, MaxVal)
  10. local Val1 = (GetLevel(Caster) * 1.08) * MinVal
  11. local Val2 = (GetLevel(Caster) * 1.08) * MaxVal
  12. local PwrAmt = randomFloat(Val1, Val2)
  13. SpellHeal("Power", PwrAmt)
  14. end
  15. function randomFloat(Val1, Val2)
  16. return Val1 + math.random() * (Val2 - Val1);
  17. end