mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Packets: named and handled yet another fields in SMSG_BATTLEFIELD_RATED_INFO packet. This fixes random battleground conquest rewards being displayed corrected when getting closer to the weekly cap
This commit is contained in:
@@ -819,6 +819,7 @@ void WorldSession::HandleRequestRatedBgInfo(WorldPacket & recvData)
|
||||
packet.Reward = ratedBattlegroundReward;
|
||||
packet.RatedMaxRewardPointsThisWeek = _player->GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_META_RBG, true);
|
||||
packet.MaxRewardPointsThisWeek = _player->GetCurrencyWeekCap(CURRENCY_TYPE_CONQUEST_POINTS, true);
|
||||
packet.RewardPointsThisWeek = _player->GetCurrencyOnWeek(CURRENCY_TYPE_CONQUEST_POINTS, true);
|
||||
|
||||
SendPacket(packet.Write());
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ WorldPacket const* WorldPackets::Battleground::BattlefieldRatedInfo::Write()
|
||||
_worldPacket << int32(Reward);
|
||||
_worldPacket << int8(Unk);
|
||||
_worldPacket << int32(PersonalRating);
|
||||
_worldPacket << int32(0);
|
||||
_worldPacket << int32(RewardPointsThisWeek);
|
||||
_worldPacket << int32(RatedMaxRewardPointsThisWeek); // this and MaxRewardPointsThisWeek are weekly conquest limits but not sure which one is for rated BGs
|
||||
_worldPacket << int32(0);
|
||||
_worldPacket << int32(0);
|
||||
|
||||
@@ -64,6 +64,7 @@ namespace WorldPackets
|
||||
int32 PersonalRating = 0;
|
||||
int32 RatedMaxRewardPointsThisWeek = 0;
|
||||
int32 MaxRewardPointsThisWeek = 0;
|
||||
int32 RewardPointsThisWeek = 0;
|
||||
int8 Unk = 0; // Same value as in cmsg
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user