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:
parent
19855382fb
commit
0f2841ddcf
1 changed files with 6 additions and 0 deletions
|
|
@ -329,6 +329,12 @@ struct npc_training_dummy : NullCreatureAI
|
|||
return;
|
||||
|
||||
_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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue