9
3

SymbolofTransal.lua 1002 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Priest/Cleric/SymbolofTransal.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 05:01:35
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Increases Max Health of group members (AE) by 30.4
  10. -- Increases Mitigation of group members (AE) vs arcane damage by 156
  11. function cast(Caster, Target, HP, Mit, SpellLevel)
  12. Level = GetLevel(Caster)
  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. TotalBonus = LvlBonus * 2 + StatBonus
  20. HpBuff = HP + math.floor(TotalBonus)
  21. MitBuff = Mit + math.floor(TotalBonus)
  22. AddSpellBonus(Target, 500, HpBuff)
  23. AddSpellBonus(Target, 203, MitBuff)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Target)
  27. RemoveSpellBonus(Target)
  28. end