Skip to content

Commit

Permalink
enc crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 13, 2024
1 parent 84b5e49 commit 8d8f313
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions class_configs/enc_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ local _ClassConfig = {
name = "Glyphy Spray",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return (RGMercUtils.IsNamed(mq.TLO.Target) and mq.TLO.Target.Level() > mq.TLO.Me.Level()) or
RGMercUtils.GetMainAssistPctHPs() < 45 and RGMercUtils.GetMainAssistPctHPs() > 5
end,
Expand All @@ -998,7 +998,7 @@ local _ClassConfig = {
name = "Reactive Rune",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return (RGMercUtils.IsNamed(mq.TLO.Target) and mq.TLO.Target.Level() > mq.TLO.Me.Level()) or
RGMercUtils.GetMainAssistPctHPs() < 45 and RGMercUtils.GetMainAssistPctHPs() > 5
end,
Expand All @@ -1008,7 +1008,7 @@ local _ClassConfig = {
name = "Self Stasis",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 30
end,

Expand All @@ -1017,7 +1017,7 @@ local _ClassConfig = {
name = "Dimensional Instability",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 30
end,

Expand All @@ -1026,7 +1026,7 @@ local _ClassConfig = {
name = "Beguiler's Directed Banishment",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 40
end,

Expand All @@ -1035,7 +1035,7 @@ local _ClassConfig = {
name = "Beguiler's Banishment",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 50 and
mq.TLO.SpawnCount("npc radius 20")() > 2
end,
Expand All @@ -1045,7 +1045,7 @@ local _ClassConfig = {
name = "Doppelganger",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 60
end,

Expand All @@ -1054,7 +1054,7 @@ local _ClassConfig = {
name = "Phantasmal Opponent",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 60
end,

Expand All @@ -1063,7 +1063,7 @@ local _ClassConfig = {
name = "Dimensional Shield",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.TargetOfTarget.ID() == mq.TLO.Me.ID() and mq.TLO.Target.ID() == RGMercConfig.Globals.AutoTargetID and mq.TLO.Me.PctHPs() <= 80
end,

Expand All @@ -1072,7 +1072,7 @@ local _ClassConfig = {
name = "Arcane Whisper",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.PctAggro() >= 90
end,

Expand All @@ -1081,7 +1081,7 @@ local _ClassConfig = {
name = "Silent Casting",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return mq.TLO.Me.PctAggro() >= 90
end,

Expand All @@ -1090,7 +1090,7 @@ local _ClassConfig = {
name = "Focus of Arcanum",
type = "AA",
cond = function(self, aaName)
if not mq.TLO.Target.ID() > 0 then return false end
if mq.TLO.Target.ID() <= 0 then return false end
return true
end,

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 = 'ecf4cc2 2024-01-13' }
return { commitId = '84b5e49 2024-01-13' }

0 comments on commit 8d8f313

Please sign in to comment.