Adjustments for Death Knight class change.

This commit is contained in:
MobiusDevelopment
2021-12-28 22:04:24 +00:00
parent 2d939006bc
commit 46d275e847
10 changed files with 84 additions and 27 deletions

View File

@@ -130,7 +130,7 @@ public class CharInfo implements IClientOutgoingPacket
packet.writeS(_player.getAppearance().getVisibleName()); // Confirmed
packet.writeH(_player.getRace().ordinal()); // Confirmed
packet.writeC(_player.getAppearance().isFemale() ? 1 : 0); // Confirmed
packet.writeD(_player.getBaseTemplate().getClassId().getRootClassId().getId());
packet.writeD(_player.isDeathKnight() && _player.isSubClassActive() ? 0 : _player.getBaseTemplate().getClassId().getRootClassId().getId());
for (int slot : getPaperdollOrder())
{

View File

@@ -152,7 +152,7 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
packet.writeC(_player.isGM() ? 1 : 0);
packet.writeC(_player.getRace().ordinal());
packet.writeC(_player.getAppearance().isFemale() ? 1 : 0);
packet.writeD(_player.getBaseTemplate().getClassId().getRootClassId().getId());
packet.writeD(_player.isDeathKnight() && _player.isSubClassActive() ? 0 : _player.getBaseTemplate().getClassId().getRootClassId().getId());
packet.writeD(_player.getClassId().getId());
packet.writeD(_player.getLevel()); // 270
packet.writeD(_player.getClassId().getId()); // 286