From 1a9ef6ea390348f852784b1ff25b0c8714558321 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Wed, 17 Jun 2026 23:22:50 -0500 Subject: [PATCH] [Bots] Add bot owner to hatelist on bot pet social aggro (#5103) --- zone/attack.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index 9ee46b31c..17b5f7d74 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -3186,7 +3186,11 @@ void Mob::AddToHateList(Mob* other, int64 hate /*= 0*/, int64 damage /*= 0*/, bo // if other is a bot, add the bots client to the hate list if (RuleB(Bots, Enabled)) { - if (other->IsBot()) { + if (other->GetOwner() && other->GetOwner()->IsBot()) { + other = other->GetOwner(); + } + + if (other->IsBot()) { auto other_ = other->CastToBot(); if (!other_ || !other_->GetBotOwner()) {