From 48b674a13dc51850e65b30bec695de8facca985c Mon Sep 17 00:00:00 2001 From: Michael Linder Date: Wed, 20 Sep 2017 19:04:59 -0500 Subject: [PATCH 1/2] During bot spawn, set bot to targetable. Fixes issue #657. --- zone/bot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/bot.cpp b/zone/bot.cpp index c78c41d62..a2e7a2fec 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -2841,6 +2841,8 @@ void Bot::Spawn(Client* botCharacterOwner) { FaceTarget(botCharacterOwner); UpdateEquipmentLight(); UpdateActiveLight(); + + this->m_targetable = true; entity_list.AddBot(this, true, true); // Load pet LoadPet(); From 78759add4ae85ff4047620de5b6c449539c3a733 Mon Sep 17 00:00:00 2001 From: Michael Linder Date: Wed, 20 Sep 2017 19:06:09 -0500 Subject: [PATCH 2/2] Ignore bots during group position update. Fixes zone.exe crash when a client gets too far away from their bots. --- zone/groups.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zone/groups.cpp b/zone/groups.cpp index d72b71c30..a7e05bf49 100644 --- a/zone/groups.cpp +++ b/zone/groups.cpp @@ -2471,6 +2471,9 @@ void Group::QueueClients(Mob *sender, const EQApplicationPacket *app, bool ack_r if (!members[i]) continue; + if (!members[i]->IsClient()) + continue; + if (ignore_sender && members[i] == sender) continue;