mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
fix(Core/Battlegrounds): When team loses the base in EotS, dead playe… (#14668)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user