Merge pull request #602 from EricksOliveira/patch-3

Fix LFG Join bug
This commit is contained in:
Yunfan Li
2024-10-14 18:22:16 +08:00
committed by GitHub

View File

@@ -79,7 +79,7 @@ bool RpgAction::SetNextRpgAction()
{ {
NextAction* nextAction = nextActions[i]; NextAction* nextAction = nextActions[i];
if (nextAction->getRelevance() > 2.0f) if (nextAction->getRelevance() > 5.0f)
continue; continue;
if (!isChecked && !trigger->IsActive()) if (!isChecked && !trigger->IsActive())
@@ -92,7 +92,7 @@ bool RpgAction::SetNextRpgAction()
continue; continue;
actions.push_back(action); actions.push_back(action);
relevances.push_back((nextAction->getRelevance() - 1) * 1000); relevances.push_back((nextAction->getRelevance() - 1) * 500);
} }
NextAction::destroy(nextActions); NextAction::destroy(nextActions);
} }