Skip to content

Commit

Permalink
Campfires gets destroyed with camp off
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 24, 2024
1 parent f351eff commit 07e574f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/movement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,15 @@ end

function Module:CampOff()
self.settings.ReturnToCamp = false
self:DestoryCampfire()
self:SaveSettings(false)
RGMercUtils.DoCmd("/mapfilter campradius off")
RGMercUtils.DoCmd("/mapfilter pullradius off")
end

function Module:DestoryCampfire()
if mq.TLO.Me.Fellowship.Campfire() == nil then return end

mq.TLO.Window("FellowshipWnd").DoOpen()
mq.delay("3s", function() return mq.TLO.Window("FellowshipWnd").Open() end)
mq.TLO.Window("FellowshipWnd").Child("FP_Subwindows").SetCurrentTab(2)
Expand Down

0 comments on commit 07e574f

Please sign in to comment.