Core/PacketIO: Fixed SMSG_LEVEL_UP_INFO structure
Port From (https://github.com/TrinityCore/TrinityCore/commit/b981606575ea8eb2ec473ce4c7db6e59dbb46b7b)
This commit is contained in:
@@ -5230,6 +5230,7 @@ namespace Game.Entities
|
|||||||
packet.PowerDelta[3] = 0;
|
packet.PowerDelta[3] = 0;
|
||||||
packet.PowerDelta[4] = 0;
|
packet.PowerDelta[4] = 0;
|
||||||
packet.PowerDelta[5] = 0;
|
packet.PowerDelta[5] = 0;
|
||||||
|
packet.PowerDelta[6] = 0;
|
||||||
|
|
||||||
for (Stats i = Stats.Strength; i < Stats.Max; ++i)
|
for (Stats i = Stats.Strength; i < Stats.Max; ++i)
|
||||||
packet.StatDelta[(int)i] = info.stats[(int)i] - (int)GetCreateStat(i);
|
packet.StatDelta[(int)i] = info.stats[(int)i] - (int)GetCreateStat(i);
|
||||||
|
|||||||
@@ -725,7 +725,7 @@ namespace Game.Networking.Packets
|
|||||||
|
|
||||||
public uint Level = 0;
|
public uint Level = 0;
|
||||||
public uint HealthDelta = 0;
|
public uint HealthDelta = 0;
|
||||||
public int[] PowerDelta = new int[6];
|
public int[] PowerDelta = new int[(int)PowerType.MaxPerClass];
|
||||||
public int[] StatDelta = new int[(int)Stats.Max];
|
public int[] StatDelta = new int[(int)Stats.Max];
|
||||||
public int NumNewTalents;
|
public int NumNewTalents;
|
||||||
public int NumNewPvpTalentSlots;
|
public int NumNewPvpTalentSlots;
|
||||||
|
|||||||
Reference in New Issue
Block a user