9
3

Weakness.lua 635 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Priest/Weakness.lua
  3. Script Author : LordPazuzu
  4. Script Date : 12/7/2022
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, BasePenalty, SpellLevel)
  9. Level = GetLevel(Caster)
  10. Mastery = SpellLevel + 10
  11. if Level < Mastery then
  12. LvlBonus = Level - SpellLevel
  13. else LvlBonus = Mastery - SpellLevel
  14. end
  15. LvlMod = LvlBonus * 0.1
  16. StrMod = BasePenalty - LvlMod
  17. AddSpellBonus(Target, 0, StrMod)
  18. end
  19. function remove(Caster, Target)
  20. RemoveSpellBonus(Target)
  21. end