fix(Core/Unit): Don't extend leash when taking self-inflicted damage. (#22449)

This commit is contained in:
Benjamin Jackson
2025-07-11 07:17:01 -04:00
committed by GitHub
parent 70faaf9288
commit 1679a9ff42

View File

@@ -13730,7 +13730,7 @@ void Unit::CombatStart(Unit* victim, bool initialAggro)
victim->SetInCombatWith(this);
// Update leash timer when attacking creatures
if (victim->IsCreature())
if (victim->IsCreature() && this != victim)
victim->ToCreature()->UpdateLeashExtensionTime();
// Xinef: If pet started combat - put owner in combat