mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 17:25:27 +00:00
fix(mission offer): RequestLinkedMission offers only a new mission after the one just answered
The client's RequestLinkedMission handler (LWOMissionOfferComponent 0x00cd6eb0) takes the giver's list without the mission the window was for, and a new mission (AVAILABLE, never completed) at its head is the one offered. DLU offered every qualifying mission again, so a mission just accepted was offered once more. The live captures match the client: no offer after an accept, and after a turn in the next mission of the chain, once per RequestLinkedMission. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -193,7 +193,7 @@ namespace GameMessages {
|
||||
auto* missionOfferComponent = static_cast<MissionOfferComponent*>(entity.GetComponent(eReplicaComponentType::MISSION_OFFER));
|
||||
|
||||
if (missionOfferComponent != nullptr) {
|
||||
missionOfferComponent->OfferMissions(player, 0);
|
||||
missionOfferComponent->OfferLinkedMission(player, missionID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user