EarthlyBrand.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/Mage/Summoner/EarthlyBrand.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.21 04:11:12
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Increases Defense of group members' pets (AE) by 2.0
  10. *Increases Mitigation of group members (AE) vs all damage by 38
  11. --]]
  12. function cast(Caster, Target, DefMod, MitMod)
  13. Pet=GetPet(Caster)
  14. Level = GetLevel(Caster)
  15. SpellLevel = 12
  16. Mastery = SpellLevel + 10
  17. StatBonus = GetInt(Caster) / 10
  18. if Level < Mastery then
  19. LvlBonus = Level - SpellLevel
  20. else LvlBonus = Mastery - SpellLevel
  21. end
  22. DefBonus = DefMod + LvlBonus
  23. MitBonus = MitMod + LvlBonus
  24. AddSkillBonus(Pet, 609880714, DefBonus)
  25. AddSpellBonus(Target, 200, MitBonus)
  26. AddSpellBonus(Target, 201, MitBonus)
  27. AddSpellBonus(Target, 202, MitBonus)
  28. AddSpellBonus(Target, 203, MitBonus)
  29. end
  30. function remove(Caster, Target)
  31. Pet=GetPet(Caster)
  32. RemoveSkillBonus(Pet)
  33. RemoveSpellBonus(Target)
  34. end