LadonCombatHealing.lua 801 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Priest/Cleric/LadonCombatHealing.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.26 08:02:12
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. local zone = GetZone(Caster)
  11. local Ladon = GetSpawnByLocationID(zone, 300448)
  12. SpellLevel = 16
  13. Mastery = SpellLevel + 10
  14. StatBonus = GetWis(Caster) / 10
  15. if Level < Mastery then
  16. LvlBonus = Level - SpellLevel
  17. else LvlBonus = Mastery - SpellLevel
  18. end
  19. HealBonus = LvlBonus + StatBonus
  20. MinHeal = math.floor(HealBonus + MinVal) * 4
  21. MaxHeal = math.floor(HealBonus + MaxVal) * 5
  22. SpellHeal("Heal", MinHeal, MaxHeal, Ladon)
  23. end