Daring.lua 985 B

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