Skip to content

Commit

Permalink
rank check for buffs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 13, 2024
1 parent 43d67df commit 7e2977d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions class_configs/shd_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,14 @@ local _ClassConfig = {
},
['RotationOrder'] = {
-- Downtime doesn't have state because we run the whole rotation at once.
{ name = 'Downtime', targetId = function(self) return { mq.TLO.Me.ID(), } end, cond = function(self, combat_state) return combat_state == "Downtime" and
RGMercUtils.DoBuffCheck() end, },
{
name = 'Downtime',
targetId = function(self) return { mq.TLO.Me.ID(), } end,
cond = function(self, combat_state)
return combat_state == "Downtime" and
RGMercUtils.DoBuffCheck()
end,
},
{
name = 'Burn',
state = 1,
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 = '1b98e5e 2024-01-13' }
return { commitId = '43d67df 2024-01-13' }
4 changes: 2 additions & 2 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,9 @@ function Utils.SelfBuffCheck(spell)
RGMercsLogger.log_verbose("\arSelfBuffCheck() Spell Invalid")
return false
end
local res = not Utils.BuffActiveByID(spell.ID()) and spell.Stacks()
local res = not Utils.BuffActiveByID(spell.RankName.ID()) and spell.Stacks()

RGMercsLogger.log_verbose("\arSelfBuffCheck(%s/%d) Spell Obj => %s", spell.RankName(), spell.ID(), Utils.BoolToString(res))
RGMercsLogger.log_verbose("\arSelfBuffCheck(%s/%d) Spell Obj => %s", spell.RankName(), spell.RankName.ID(), Utils.BoolToString(res))

return res
end
Expand Down

0 comments on commit 7e2977d

Please sign in to comment.