mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
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:
@@ -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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user