Skip to content

Commit

Permalink
- Seperated out sk emergency measures
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Mar 9, 2024
1 parent 4b35407 commit 7cdf41b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
36 changes: 24 additions & 12 deletions class_configs/shd_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,15 @@ local _ClassConfig = {
RGMercUtils.DoBuffCheck() and RGMercConfig:GetTimeSinceLastMove() > RGMercUtils.GetSetting('BuffWaitMoveTimer')
end,
},
{
name = 'Emergency',
state = 1,
steps = 1,
targetId = function(self) return mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and { RGMercConfig.Globals.AutoTargetID, } or {} end,
cond = function(self, combat_state)
return combat_state == "Combat" and mq.TLO.Me.PctHPs() < 70
end,
},
{
name = 'Burn',
state = 1,
Expand Down Expand Up @@ -869,6 +878,20 @@ local _ClassConfig = {
{ name = "T`Vyl's Resolve", type = "AA", tooltip = Tooltips.Tyvls, },
},
['Debuff'] = {},
['Emergency'] = {
{
name = mq.TLO.Me.Inventory("Chest").Name(),
type = "Item",
active_cond = function(self)
local item = mq.TLO.Me.Inventory("Chest")
return item() and RGMercUtils.TargetHasBuff(item.Spell, mq.TLO.Me)
end,
cond = function(self)
local item = mq.TLO.Me.Inventory("Chest")
return RGMercUtils.GetSetting('DoChestClick') and item() and RGMercUtils.SpellStacksOnMe(item.Spell) and item.TimerReady() == 0
end,
},
},
['Combat Maintenance'] = {
{
name = "ActivateShield",
Expand Down Expand Up @@ -897,18 +920,7 @@ local _ClassConfig = {
return true
end,
},
{
name = mq.TLO.Me.Inventory("Chest").Name(),
type = "Item",
active_cond = function(self)
local item = mq.TLO.Me.Inventory("Chest")
return item() and RGMercUtils.TargetHasBuff(item.Spell, mq.TLO.Me)
end,
cond = function(self)
local item = mq.TLO.Me.Inventory("Chest")
return RGMercUtils.GetSetting('DoChestClick') and item() and RGMercUtils.SpellStacksOnMe(item.Spell) and item.TimerReady() == 0 and mq.TLO.Me.PctHPs() < 70
end,
},

{
name = mq.TLO.Me.Inventory("Charm").Name(),
type = "Item",
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 = '7f4315e 2024-03-08' }
return { commitId = '4b35407 2024-03-08' }

0 comments on commit 7cdf41b

Please sign in to comment.