diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.cpp index d694e96c9..7e1dbf5cd 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.cpp @@ -445,6 +445,19 @@ struct npc_ahnqiraji_critter : public ScriptedAI me->RestoreFaction(); _scheduler.CancelAll(); + + // Don't attack nearby players randomly if they are the Twin's pet bugs. + if (CreatureData const* crData = me->GetCreatureData()) + { + ObjectGuid dbtableHighGuid = ObjectGuid::Create(crData->id1, me->GetSpawnId()); + ObjectGuid targetGuid = sObjectMgr->GetLinkedRespawnGuid(dbtableHighGuid); + + if (targetGuid.GetEntry() == NPC_VEKLOR) + { + return; + } + } + _scheduler.Schedule(100ms, [this](TaskContext context) { if (Player* player = me->SelectNearestPlayer(10.f))