Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion FollowTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void Tick()
public async Task<bool> Run()
{
if (!FollowBotSettings.Instance.ShouldFollow) return false;
if (!LokiPoe.IsInGame || LokiPoe.Me.IsDead || LokiPoe.Me.IsInTown || LokiPoe.Me.IsInHideout)
if (!LokiPoe.IsInGame || LokiPoe.Me.IsDead || LokiPoe.Me.IsInTown || LokiPoe.Me.IsInHideout || World.CurrentArea.Id == "HeistHub")
{
return false;
}
Expand Down
16 changes: 13 additions & 3 deletions TravelToPartyZoneTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ public async Task<bool> Run()
{
if (FollowBotSettings.Instance.DontPortOutofMap) return false;
}

//check for different rouge harbour
if(leader.PlayerEntry.Area.Id == "HeistHub" && LokiPoe.CurrentWorldArea.Id == "HeistHub")
{
//GlobalLog.Warn($"in differwnt harbour with {leadername} ");
return true;
}
_zoneCheckRetry ++;
if (_zoneCheckRetry < 3)
{
Expand Down Expand Up @@ -96,15 +101,20 @@ public async Task<bool> Run()
FollowBot.Leader = null;
return true;
}
//Next check for Heist portals:
//Next check for Heist entry portals:
var heistportal = LokiPoe.ObjectManager.GetObjectByMetadata("Metadata/Terrain/Leagues/Heist/Objects/MissionEntryPortal");
//also check for heist exit portal
if (heistportal == null)
{
heistportal = LokiPoe.ObjectManager.GetObjectByMetadata("Metadata/Terrain/Leagues/Heist/Objects/MissionExitPortal");
}
//if we found portal
if (heistportal != null && heistportal.Components.TargetableComponent.CanTarget)
{
Log.DebugFormat("[{0}] Found walkable heist portal.", Name);
if (LokiPoe.Me.Position.Distance(heistportal.Position) > 20)
{
var walkablePosition = ExilePather.FastWalkablePositionFor(heistportal, 20);

// Cast Phase run if we have it.
FollowBot.PhaseRun();

Expand Down