fix(Core/Combat): Training dummy stuck combat after pet recall (#25565)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -329,6 +329,12 @@ struct npc_training_dummy : NullCreatureAI
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
_combatTimer[attacker->GetGUID()] = 5s;
|
_combatTimer[attacker->GetGUID()] = 5s;
|
||||||
|
|
||||||
|
// Pet attacks engage the owner via propagation without firing
|
||||||
|
// JustEnteredCombat here, so track the owner's timer too.
|
||||||
|
if (Unit* owner = attacker->GetCharmerOrOwner())
|
||||||
|
if (me->GetCombatManager().IsInCombatWith(owner))
|
||||||
|
_combatTimer[owner->GetGUID()] = 5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(uint32 diff) override
|
void UpdateAI(uint32 diff) override
|
||||||
|
|||||||
Reference in New Issue
Block a user