diff --git a/zone/aggro.cpp b/zone/aggro.cpp index a2c439fdb..3c4bfd0e6 100644 --- a/zone/aggro.cpp +++ b/zone/aggro.cpp @@ -745,8 +745,8 @@ bool Mob::IsAttackAllowed(Mob *target, bool isSpellAttack) // can't damage own pet (applies to everthing) Mob *target_owner = target->GetOwner(); Mob *our_owner = GetOwner(); - Mob* target_ultimate_owner = target->GetUltimateOwner(); - Mob* our_ultimate_owner = GetUltimateOwner(); + Mob* target_ultimate_owner = (target->IsBot() ? target->CastToBot()->GetBotOwner() : target->GetUltimateOwner()); + Mob* our_ultimate_owner = (IsBot() ? CastToBot()->GetBotOwner() : GetUltimateOwner()); if (target_owner && target_owner == this) { return false;