mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/PacketIO: Fixed SMSG_LEVEL_UP_INFO structure
This commit is contained in:
@@ -2362,6 +2362,7 @@ void Player::GiveLevel(uint8 level)
|
||||
packet.PowerDelta[3] = 0;
|
||||
packet.PowerDelta[4] = 0;
|
||||
packet.PowerDelta[5] = 0;
|
||||
packet.PowerDelta[6] = 0;
|
||||
|
||||
for (uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i)
|
||||
packet.StatDelta[i] = int32(info.stats[i]) - GetCreateStat(Stats(i));
|
||||
|
||||
@@ -499,13 +499,13 @@ namespace WorldPackets
|
||||
class LevelUpInfo final : public ServerPacket
|
||||
{
|
||||
public:
|
||||
LevelUpInfo() : ServerPacket(SMSG_LEVEL_UP_INFO, 56) { }
|
||||
LevelUpInfo() : ServerPacket(SMSG_LEVEL_UP_INFO, 60) { }
|
||||
|
||||
WorldPacket const* Write() override;
|
||||
|
||||
int32 Level = 0;
|
||||
int32 HealthDelta = 0;
|
||||
std::array<int32, 6> PowerDelta = { };
|
||||
std::array<int32, MAX_POWERS_PER_CLASS> PowerDelta = { };
|
||||
std::array<int32, MAX_STATS> StatDelta = { };
|
||||
int32 NumNewTalents = 0;
|
||||
int32 NumNewPvpTalentSlots = 0;
|
||||
|
||||
Reference in New Issue
Block a user