[WIP] Core/AI: Pets musn't attack civilian NPC in aggressive mode
Port From (https://github.com/TrinityCore/TrinityCore/commit/1e932109996a0ce2117f3d5268064ee882267e84)
This commit is contained in:
@@ -336,7 +336,7 @@ namespace Game.AI
|
||||
{
|
||||
if (!me.GetCharmInfo().IsReturning() || me.GetCharmInfo().IsFollowing() || me.GetCharmInfo().IsAtStay())
|
||||
{
|
||||
Unit nearTarget = me.SelectNearestHostileUnitInAggroRange(true);
|
||||
Unit nearTarget = me.SelectNearestHostileUnitInAggroRange(true, true);
|
||||
if (nearTarget)
|
||||
return nearTarget;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user