From d25ca1f9633b1613213fc0199a488f0efc08089b Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sat, 28 Jan 2023 10:58:41 +0100 Subject: [PATCH] =?UTF-8?q?fix(Core/Battlegrounds):=20When=20team=20loses?= =?UTF-8?q?=20the=20base=20in=20EotS,=20dead=20playe=E2=80=A6=20(#14668)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp index d7c00426f..2632b1192 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp @@ -472,6 +472,12 @@ void BattlegroundEY::EventTeamLostPoint(Player* player, uint32 point) UpdatePointsIcons(point); UpdatePointsCount(); DelCreature(BG_EY_TRIGGER_FEL_REAVER + point); + + _reviveEvents.AddEventAtOffset([this, point]() + { + RelocateDeadPlayers(BgCreatures[point]); + DelCreature(point); + }, 500ms); } void BattlegroundEY::EventTeamCapturedPoint(Player* player, TeamId teamId, uint32 point) @@ -498,8 +504,6 @@ void BattlegroundEY::EventTeamCapturedPoint(Player* player, TeamId teamId, uint3 } _capturePointInfo[point]._ownerTeamId = teamId; - if (BgCreatures[point]) - DelCreature(point); GraveyardStruct const* sg = sGraveyard->GetGraveyard(m_CapturingPointTypes[point].GraveYardId); AddSpiritGuide(point, sg->x, sg->y, sg->z, 3.124139f, teamId);