mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/Combat): Fire OnPlayerLeaveCombat hook from CombatManager exit path (#25137)
Co-authored-by: blinkysc <[email protected]>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user