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:
@@ -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