ArchHealing.lua 702 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Priest/Cleric/ArchHealing.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 04:01:45
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals target for 182 - 223
  9. function cast(Caster, Target, MinVal, MaxVal, SpellLevel)
  10. Level = GetLevel(Caster)
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetWis(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. HealBonus = LvlBonus + StatBonus
  18. MinHeal = math.floor(HealBonus) * 2 + MinVal
  19. MaxHeal = math.floor(HealBonus) * 2 + MaxVal
  20. SpellHeal("Heal", MinHeal, MaxHeal)
  21. end