9
3

ArcaneAegis.lua 720 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Commoner/ArcaneAegis.lua
  3. Script Author : neatz09
  4. Script Date : 2020.04.09 09:04:09
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases Mitigation of group (AE) vs Physical and Arcane damage by x - y based on Clevel
  9. function cast(Caster, Target, MinVal, MaxVal)
  10. local Val1 = (GetLevel(Caster) * 1.08) * MinVal
  11. local Val2 = (GetLevel(Caster) * 1.08) * MaxVal
  12. local MitAmt = randomFloat(Val1, Val2)
  13. AddSpellBonus(Target, 200, MitAmt)
  14. AddSpellBonus(Target, 203, MitAMt)
  15. end
  16. function randomFloat(Val1, Val2)
  17. return Val1 + math.random() * (Val2 - Val1);
  18. end
  19. function remove(Caster, Target)
  20. RemoveSpellBonus(Target)
  21. end