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

This commit is contained in:
nytmyr
2026-06-17 23:22:50 -05:00
committed by GitHub
parent 36d6613a47
commit 1a9ef6ea39
+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()) {