Willowskin.lua 858 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Priest/Druid/Willowskin.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 06:01:53
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Stat, Mit)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 16
  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. StaBonus= LvlBonus * 0.1 + Stat
  18. MitBonus = LvlBonus + StatBonus
  19. TotalMit = Mit + math.floor(MitBonus)
  20. AddSpellBonus(Target, 1, StaBonus)
  21. AddSpellBonus(Target, 2, StaBonus)
  22. AddSpellBonus(Target, 3, StaBonus)
  23. AddSpellBonus(Target, 200, TotalMit)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Target)
  27. end