12345678910111213141516171819202122232425262728293031323334353637 |
- --[[
- Script Name : Spells/Priest/Cleric/Daring.lua
- Script Author : neatz09
- Script Date : 2020.01.02 05:01:48
- Script Purpose :
- :
- --]]
- -- Info from spell_display_effects (remove from script when done)
- -- Increases STA of group members (AE) by 13.8
- -- Increases Mitigation of group members (AE) vs physical damage by 131
- function cast(Caster, Target, Sta, Mit)
- Level = GetLevel(Caster)
- SpellLevel = 19
- Mastery = SpellLevel + 10
- StatBonus = GetWis(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- StaBonus= LvlBonus * 0.5 + Sta
- MitBonus = LvlBonus + StatBonus
- TotalMit = Mit + math.floor(MitBonus)
-
- AddSpellBonus(Target, 1, StaBonus)
- AddSpellBonus(Target, 200, TotalMit)
- end
- function remove(Caster, Target)
- RemoveSpellBonus(Target)
- RemoveSpellBonus(Target)
- end
|