PainfulMeditation.lua 648 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/PainfulMeditation.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 02:11:33
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases power of caster by 29
  9. function cast(Caster, Target, Amount, SpellLevel)
  10. Level = GetLevel(Caster)
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetInt(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. PowBonus = LvlBonus + StatBonus
  18. PowHealg = Amount + math.floor(PowBonus)
  19. SpellHeal("Power", PowHeal)
  20. end