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:
parent
f0a4612964
commit
f0a96b4489
1 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue