From 96370e0298cd49af865400cab114cfcb0d9e7344 Mon Sep 17 00:00:00 2001 From: MortimerGreenwald <110543605+MortimerGreenwald@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:29:53 -0800 Subject: [PATCH] [Bug Fix] An Update to Xtarget to exclude Bot owned Temp/Swarm Pets (#4172) * An Update to Xtarget to exclude Bot owned Temp/Swarm Pets * Missing a parentheses * Cleaned up logic. --- zone/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/client.cpp b/zone/client.cpp index f82688080..739834acf 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -6775,7 +6775,7 @@ void Client::UpdateClientXTarget(Client *c) // IT IS NOT SAFE TO CALL THIS IF IT'S NOT INITIAL AGGRO void Client::AddAutoXTarget(Mob *m, bool send) { - if (m->IsBot() || (m->IsPet() && m->IsPetOwnerBot())) { + if (m->IsBot() || ((m->IsPet() || m->IsTempPet()) && m->IsPetOwnerBot())) { return; }