fix(Core/Creature): stop mid-fight summons and proximity aggro from preferring totems/pets over players (#26457)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-07-04 15:10:51 -03:00
committed by GitHub
parent acd519b9a5
commit b4f2e6f8f7
4 changed files with 24 additions and 3 deletions

View File

@@ -1925,6 +1925,11 @@ bool Creature::CanStartAttack(Unit const* who, bool force) const
if (!_IsTargetAcceptable(who))
return false;
// Totems never pull proximity aggro; they are only attacked in response
// to threat they generate themselves (e.g. Searing Totem)
if (who->IsTotem())
return false;
if (IsNeutralToAll() || !IsWithinDistInMap(who, GetAggroRange(who) + m_CombatDistance, true, false, false))
return false;
}