123456789101112131415161718192021222324252627282930313233 |
- --[[
- Script Name : Spells/Priest/Weakness.lua
- Script Author : LordPazuzu
- Script Date : 12/7/2022
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, BasePenalty, SpellLevel)
- Level = GetLevel(Caster)
- Mastery = SpellLevel + 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
-
- end
-
- LvlMod = LvlBonus * 0.1
- StrMod = BasePenalty - LvlMod
-
- AddSpellBonus(Target, 0, StrMod)
- end
- function remove(Caster, Target)
- RemoveSpellBonus(Target)
- end
|