mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 00:08:01 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user