Skip to content

Commit

Permalink
Use character cfg to check if we should attempt to reopenTP on return
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfvsilva committed Jan 22, 2025
1 parent 4037b30 commit 49748fe
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions internal/action/town.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ func InRunReturnTownRoutine() error {
ReviveMerc()
HireMerc()
Repair()
UsePortalInTown()
utils.Sleep(500)
return OpenTPIfLeader()

if (ctx.CharacterCfg.Companion.Leader) {
UsePortalInTown()
utils.Sleep(500)
return OpenTPIfLeader()
}

return UsePortalInTown()
}

0 comments on commit 49748fe

Please sign in to comment.