Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 24, 2024
2 parents 379220c + 42422cc commit 4051bbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions class_configs/shm_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ local _ClassConfig = {
},
},
['HelperFunctions'] = {
-- helper function for advanced logic to see if we want to use Dark Lord's Unity
DoRez = function(self, corpseId)
if not RGMercUtils.PCSpellReady(mq.TLO.Spell("Incarnate Anew")) and
not mq.TLO.FindItem("Staff of Forbidden Rites")() and
Expand Down Expand Up @@ -1414,10 +1413,11 @@ local _ClassConfig = {
cond = function(self, gem) return mq.TLO.Me.NumGems() >= gem end,
spells = {
-- [ HEAL MODE ] --
{ name = "GrowthBuff", cond = function(self) return RGMercUtils.IsModeActive("Heal") end, },
{ name = "GrowthBuff", cond = function(self) return RGMercUtils.IsModeActive("Heal") end, },
-- [ Hybrid MODE ] --
{ name = "SlowProcBuff", },
-- [ TLP FALL BACK ] --
{ name = "LowLvlAttackBuff", },
{ name = "CanniSpell", },
{ name = "PetBuffSpell", },
},
Expand Down
7 changes: 4 additions & 3 deletions modules/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function Module:SelfCheckAndRez()
if rezSpawn() then
if self.ClassConfig.HelperFunctions.DoRez then
if (os.clock() - (self.TempSettings.RezTimers[rezSpawn.ID()] or 0)) >= RGMercUtils.GetSetting('RetryRezDelay') then
RGMercUtils.SafeCallFunc(self.ClassConfig.HelperFunctions.DoRez, self, rezSpawn.ID())
RGMercUtils.SafeCallFunc("SelfCheckAndRez", self.ClassConfig.HelperFunctions.DoRez, self, rezSpawn.ID())
self.TempSettings.RezTimers[rezSpawn.ID()] = os.clock()
end
end
Expand All @@ -377,7 +377,8 @@ function Module:IGCheckAndRez()
if rezSpawn() then
if self.ClassConfig.HelperFunctions.DoRez then
if (os.clock() - (self.TempSettings.RezTimers[rezSpawn.ID()] or 0)) >= RGMercUtils.GetSetting('RetryRezDelay') then
RGMercUtils.SafeCallFunc(self.ClassConfig.HelperFunctions.DoRez, self, rezSpawn.ID())
RGMercsLogger.log_debug("Attempting to Res: %s", rezSpawn.CleanName())
RGMercUtils.SafeCallFunc("IGCheckAndRez", self.ClassConfig.HelperFunctions.DoRez, self, rezSpawn.ID())
self.TempSettings.RezTimers[rezSpawn.ID()] = os.clock()
end
end
Expand All @@ -394,7 +395,7 @@ function Module:OOGCheckAndRez()
if rezSpawn() and (RGMercUtils.IsSafeName("pc", rezSpawn.DisplayName())) then
if self.ClassConfig.HelperFunctions.DoRez then
if (os.clock() - (self.TempSettings.RezTimers[rezSpawn.ID()] or 0)) >= RGMercUtils.GetSetting('RetryRezDelay') then
RGMercUtils.SafeCallFunc(self.ClassConfig.HelperFunctions.DoRez, self, rezSpawn.ID())
RGMercUtils.SafeCallFunc("OOGCheckAndRez", self.ClassConfig.HelperFunctions.DoRez, self, rezSpawn.ID())
self.TempSettings.RezTimers[rezSpawn.ID()] = os.clock()
end
end
Expand Down

0 comments on commit 4051bbc

Please sign in to comment.