9
3

EssenceShift.lua 792 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Mage/Summoner/EssenceShift.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2-19-2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 111 magic damage on target
  9. -- Increases power of caster by 29
  10. function cast(Caster, Target, DmgType, MinVal, Pwr)
  11. Pet=GetPet(Caster)
  12. Level = GetLevel(Caster)
  13. SpellLevel = 15
  14. Mastery = SpellLevel + 10
  15. StatBonus = GetInt(Caster) / 10
  16. if Level < Mastery then
  17. LvlBonus = Level - SpellLevel
  18. else LvlBonus = Mastery - SpellLevel
  19. end
  20. PwBonus = LvlBonus + StatBonus
  21. MaxPw = Pwr + math.floor(PwBonus)
  22. if GetHP(Pet) > MinVal then
  23. ModifyHP(Pet, MinVal)
  24. SpellHeal("Power", MaxPw, MaxPw, Caster)
  25. else
  26. end
  27. end