Skip to content

Commit

Permalink
Check agent id as well for the travel destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Teach committed Feb 27, 2011
1 parent bf4b709 commit 7590484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Questor/Questor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ private void OnFrame(object sender, EventArgs e)

case QuestorState.GotoMission:
var missionDestination = _traveler.Destination as MissionBookmarkDestination;
if (missionDestination == null) // We assume that this will always work "correctly" (tm)
if (missionDestination == null || missionDestination.AgentId != Cache.Instance.Agent.AgentId) // We assume that this will always work "correctly" (tm)
_traveler.Destination = new MissionBookmarkDestination(Cache.Instance.GetMissionBookmark("Encounter"));

if (Cache.Instance.PriorityTargets.Any(pt => pt != null && pt.IsValid))
Expand All @@ -417,7 +417,7 @@ private void OnFrame(object sender, EventArgs e)
// Seeing as we just warped to the mission, start the mission controller
_missionController.State = MissionControllerState.Start;
_combat.State = CombatState.CheckTargets;

_traveler.Destination = null;
}
break;
Expand Down Expand Up @@ -608,6 +608,7 @@ private void OnFrame(object sender, EventArgs e)
if (_traveler.State == TravelerState.AtDestination)
{
State = QuestorState.Salvage;

_traveler.Destination = null;
}

Expand Down

0 comments on commit 7590484

Please sign in to comment.