mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(Scripts/Kalimdor): prevent starting Caravan escort when in progress (#25776)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user