[Bots] Add bot owner to hatelist on bot pet social aggro (#5103)

This commit is contained in:
nytmyr authored and GitHub committed 2026-06-17 21:22:50 -07:00
1 parent 36d6613a47
commit 1a9ef6ea39
1 file changed
+5 -1
+5 -1
View File
@@ -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()) {