fix(Core/Combat): Fire OnPlayerLeaveCombat hook from CombatManager exit path (#25137)

Co-authored-by: blinkysc <[email protected]>
This commit is contained in:
blinkysc
2026-03-21 09:37:20 -03:00
committed by GitHub
co-authored by blinkysc
parent 0f73402575
commit 9840d54ef4
+3
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())