fix(Core:Battlegrounds): fixes some Arathi Basin achievements. (#8009)

* fix(Core:Battlegrounds): fixes some Arathi Basin achievements.

Fixes #7775

* minor change.
This commit is contained in:
UltraNix
2021-10-01 10:11:10 +02:00
committed by GitHub
parent d461898a3d
commit 08f1e86195
2 changed files with 7 additions and 9 deletions

View File

@@ -242,11 +242,11 @@ void BattlegroundMgr::BuildPvpLogDataPacket(WorldPacket* data, Battleground* bg)
}
if (bg->GetStatus() != STATUS_WAIT_LEAVE)
*data << uint8(0); // bg not ended
*data << uint8(0); // bg not ended
else
{
*data << uint8(1); // bg ended
*data << uint8(bg->GetWinner()); // who win
*data << uint8(1); // bg ended
*data << uint8(bg->GetWinner() == TEAM_ALLIANCE ? TEAM_HORDE : TEAM_ALLIANCE); // who win
}
size_t wpos = data->wpos();