9
3

PledgeofArmament.lua 847 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/PledgeofArmament.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/17/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases Mitigation of target vs physical damage by 73
  9. -- Decreases Mitigation of caster vs physical damage by 162
  10. function cast(Caster, Target, TgtMit, CastMit)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 15
  13. Mastery = SpellLevel + 10
  14. if Level < Mastery then
  15. LvlBonus = Level - SpellLevel
  16. else LvlBonus = Mastery - SpellLevel
  17. end
  18. TargetMit = TgtMit + LvlBonus
  19. CasterMit = CastMit + LvlBonus
  20. AddSpellBonus(Target, 200, TargetMit)
  21. AddSpellBonus(Caster, 200, CasterMit)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. RemoveSpellBonus(Caster)
  26. end