Verdure.lua 747 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Priest/Druid/Verdure.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/20/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, HP, Mit)
  9. Level = GetLevel(Caster)
  10. SpellLevel= 19
  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. TotalBonus = LvlBonus + StatBonus
  18. TotalHP = TotalBonus + HP
  19. TotalMit = TotalBonus + Mit
  20. AddSpellBonus(Target, 500, TotalHP)
  21. AddSpellBonus(Target, 200, TotalMit)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. end