refactor(Core/Combat): Port TrinityCore heap-based threat system (#24715)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: Treeston <treeston.mmoc@gmail.com> Co-authored-by: killerwife <killerwife@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -903,7 +903,7 @@ void Battleground::EndBattleground(PvPTeamId winnerTeamId)
|
||||
{
|
||||
//needed cause else in av some creatures will kill the players at the end
|
||||
player->CombatStop();
|
||||
player->getHostileRefMgr().deleteReferences();
|
||||
player->GetThreatMgr().RemoveMeFromThreatLists();
|
||||
}
|
||||
|
||||
uint32 winner_kills = player->GetRandomWinner() ? sWorld->getIntConfig(CONFIG_BG_REWARD_WINNER_HONOR_LAST) : sWorld->getIntConfig(CONFIG_BG_REWARD_WINNER_HONOR_FIRST);
|
||||
|
||||
Reference in New Issue
Block a user