Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion internal/action/town.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/hectorgimenez/d2go/pkg/data/skill"
"github.com/hectorgimenez/koolo/internal/action/step"
"github.com/hectorgimenez/koolo/internal/context"
"github.com/hectorgimenez/koolo/internal/utils"
)

func PreRun(firstRun bool) error {
Expand Down Expand Up @@ -95,6 +96,12 @@ func InRunReturnTownRoutine() error {
ReviveMerc()
HireMerc()
Repair()


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

return UsePortalInTown()
}