mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-18 07:38:22 +00:00
[Bots] Add bot owner to hatelist on bot pet social aggro (#5103)
This commit is contained in:
+5
-1
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user