fix(Scripts/EscapeFromDurnholde): Fix escort mission getting stuck (#16636)

Fix stuck event

Fix escort event possibly getting stuck by preventing
DATA_ESCORT_PROGRESS from being decreased
This commit is contained in:
Johaine
2023-08-02 17:52:18 +00:00
committed by GitHub
parent f0a4612964
commit f0a96b4489

View File

@@ -66,7 +66,7 @@ public:
void OnPlayerEnter(Player* player) override
{
if (instance->GetPlayersCountExceptGMs() == 1)
if (instance->GetPlayersCountExceptGMs() <= 1)
CleanupInstance();
EnsureGridLoaded();
@@ -144,8 +144,11 @@ public:
Reposition(thrall);
return;
case DATA_ESCORT_PROGRESS:
_encounterProgress = data;
SaveToDB();
if (_encounterProgress < data)
{
_encounterProgress = data;
SaveToDB();
}
break;
case DATA_BOMBS_PLACED:
{