fix(Core/Combat): Fire OnPlayerLeaveCombat hook from CombatManager exit path (#25137)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
0f73402575
commit
9840d54ef4
1 changed files with 3 additions and 0 deletions
|
|
@ -427,6 +427,9 @@ bool CombatManager::UpdateOwnerCombatState() const
|
|||
_owner->AtExitCombat();
|
||||
if (!_owner->IsCreature())
|
||||
_owner->AtDisengage();
|
||||
|
||||
if (Player* player = _owner->ToPlayer())
|
||||
sScriptMgr->OnPlayerLeaveCombat(player);
|
||||
}
|
||||
|
||||
if (Unit* master = _owner->GetCharmerOrOwner())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue