9
3

Courage.lua 894 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Priest/Courage.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 04:01:25
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases STA of group members (AE) by 6.3
  9. -- Increases Mitigation of group members (AE) vs physical damage by 61
  10. function cast(Caster, Target, Sta, Mit)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 5
  13. Mastery = SpellLevel + 10
  14. StatBonus = GetWis(Caster) / 10
  15. if Level < Mastery then
  16. LvlBonus = Level - SpellLevel
  17. else LvlBonus = Mastery - SpellLevel
  18. end
  19. StaBonus= LvlBonus * 0.1 + Sta
  20. MitBonus = LvlBonus + StatBonus
  21. TotalMit = Mit + math.floor(MitBonus)
  22. AddSpellBonus(Target, 1, StaBonus)
  23. AddSpellBonus(Target, 200, TotalMit)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Target)
  27. end