Skip to content

Commit

Permalink
- Added group buffs for mage
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Mar 11, 2024
1 parent 76b7322 commit 750958b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
36 changes: 29 additions & 7 deletions class_configs/mag_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,25 @@ _ClassConfig = {
cond = function(self, combat_state) return combat_state ~= "Downtime" end,
},
-- Downtime doesn't have state because we run the whole rotation at once.
{
name = 'GroupBuff',
timer = 60, -- only run every 60 seconds top.
targetId = function(self)
local groupIds = { mq.TLO.Me.ID(), }
local count = mq.TLO.Group.Members()
for i = 1, count do
local rezSearch = string.format("pccorpse %s radius 100 zradius 50", mq.TLO.Group.Member(i).DisplayName())
if RGMercUtils.GetSetting('BuffRezables') or mq.TLO.SpawnCount(rezSearch)() == 0 then
table.insert(groupIds, mq.TLO.Group.Member(i).ID())
end
end
return groupIds
end,
cond = function(self, combat_state)
return combat_state == "Downtime" and RGMercUtils.DoBuffCheck() and
RGMercConfig:GetTimeSinceLastMove() > RGMercUtils.GetSetting('BuffWaitMoveTimer')
end,
},
{
name = 'Downtime',
targetId = function(self) return mq.TLO.Me.Pet.ID() > 0 and { mq.TLO.Me.ID(), mq.TLO.Me.Pet.ID(), } or { mq.TLO.Me.ID(), } end,
Expand Down Expand Up @@ -1530,6 +1549,16 @@ _ClassConfig = {
end,
},
},
['GroupBuff'] = {
{
name = "LongDurDmgShield",
type = "Spell",
cond = function(self, spell, target, uiCheck)
if not uiCheck then RGMercUtils.SetTarget(target.ID() or 0) end
return not RGMercUtils.TargetHasBuff(spell) and RGMercUtils.SpellStacksOnTarget(spell)
end,
},
},
['Downtime'] = {
{
name = "HandlePetToys",
Expand Down Expand Up @@ -1691,13 +1720,6 @@ _ClassConfig = {
return RGMercUtils.SelfBuffPetCheck(spell)
end,
},
{
name = "LongDurDmgShield",
type = "Spell",
cond = function(self, spell)
return RGMercUtils.SelfBuffPetCheck(spell) and mq.TLO.Me.AltAbility("Companions Discipline")
end,
},
{
name = "Second Wind Ward",
type = "AA",
Expand Down
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '92a5a75 2024-03-11' }
return { commitId = '76b7322 2024-03-11' }

0 comments on commit 750958b

Please sign in to comment.