fix(Scripts/Kalimdor): prevent starting Caravan escort when in progress (#25776)

This commit is contained in:
mpfans
2026-05-25 05:33:23 +08:00
committed by GitHub
parent d7fca81ac2
commit 3b58c9afad

View File

@@ -395,9 +395,12 @@ public:
active->RemoveNpcFlag(UNIT_NPC_FLAG_QUESTGIVER);
break;
case EVENT_RESTART_ESCORT:
CheckCaravan();
SetDespawnAtEnd(false);
Start(true, ObjectGuid::Empty, 0, false, false, true);
if (!IsEscorted())
{
CheckCaravan();
SetDespawnAtEnd(false);
Start(true, ObjectGuid::Empty, 0, false, false, true);
}
break;
}