fix(Core/Battlegrounds): Delay a little bit relocation of dead players. (#9302)

Fixes #8958
This commit is contained in:
UltraNix
2021-12-08 22:10:26 +01:00
committed by GitHub
parent 6c1846ad8f
commit 85abfafb2b
6 changed files with 84 additions and 43 deletions

View File

@@ -281,9 +281,13 @@ void BattlegroundAB::NodeDeoccupied(uint8 node)
--_controlledPoints[_capturePointInfo[node]._ownerTeamId];
_capturePointInfo[node]._ownerTeamId = TEAM_NEUTRAL;
RelocateDeadPlayers(BgCreatures[node]);
DelCreature(node); // Delete spirit healer
_reviveEvents.AddEventAtOffset([this, node]()
{
RelocateDeadPlayers(BgCreatures[node]);
DelCreature(node); // Delete spirit healer
}, 500ms);
DelCreature(BG_AB_ALL_NODES_COUNT + node); // Delete aura trigger
}