fix(Core/Unit): Don't extend leash when taking self-inflicted damage. (#22449)
This commit is contained in:
@@ -13730,7 +13730,7 @@ void Unit::CombatStart(Unit* victim, bool initialAggro)
|
|||||||
victim->SetInCombatWith(this);
|
victim->SetInCombatWith(this);
|
||||||
|
|
||||||
// Update leash timer when attacking creatures
|
// Update leash timer when attacking creatures
|
||||||
if (victim->IsCreature())
|
if (victim->IsCreature() && this != victim)
|
||||||
victim->ToCreature()->UpdateLeashExtensionTime();
|
victim->ToCreature()->UpdateLeashExtensionTime();
|
||||||
|
|
||||||
// Xinef: If pet started combat - put owner in combat
|
// Xinef: If pet started combat - put owner in combat
|
||||||
|
|||||||
Reference in New Issue
Block a user