9
3

Rebuke.lua 661 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Rebuke.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 04:01:51
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Mitigation of target vs physical damage by 108
  9. function cast(Caster, Target, Mit, SpellLevel)
  10. Level = GetLevel(Caster)
  11. Mastery = SpellLevel + 10
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. MitDebuff = LvlBonus + Mit
  17. AddSpellBonus(Target, 200, math.floor (MitDebuff))
  18. end
  19. function remove(Caster, Target)
  20. RemoveSpellBonus(Target)
  21. end