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:
blinkysc 2026-03-21 07:37:20 -05:00 committed by GitHub
parent 0f73402575
commit 9840d54ef4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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())