Skip to content

Commit

Permalink
- extra death logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 25, 2024
1 parent 11e0a61 commit 004397d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = 'eafe7dd 2024-02-25' }
return { commitId = '11e0a61 2024-02-25' }
4 changes: 4 additions & 0 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ function Utils.HandleDeath()
RGMercModules:ExecAll("OnDeath")

while mq.TLO.Me.Hovering() do
RGMercsLogger.log_debug("Trying to release...")
if mq.TLO.Window("RespawnWnd").Open() and Utils.GetSetting('InstantRelease') then
mq.TLO.Window("RespawnWnd").Child("RW_OptionsList").Select(1)
mq.delay("1s")
Expand All @@ -166,7 +167,10 @@ function Utils.HandleDeath()

mq.delay("1m", function() return (not mq.TLO.Me.Zoning()) end)

RGMercsLogger.log_debug("Done zoning post death.")

if Utils.GetSetting('DoFellow') then
RGMercsLogger.log_debug("Doing fellowship post death.")
if mq.TLO.FindItem("Fellowship Registration Insignia").Timer.TotalSeconds() == 0 then
mq.delay("30s", function() return (mq.TLO.Me.CombatState():lower() == "active") end)
Utils.DoCmd("/useitem \"Fellowship Registration Insignia\"")
Expand Down

0 comments on commit 004397d

Please sign in to comment.