Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/cypher_proxy' into cypher_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 19, 2022
2 parents 8c7bbd0 + 8b659e0 commit a4e8ae4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ void HandlePvPCredit(WorldPacket packet)
void HandlePlayerSkinned(WorldPacket packet)
{
PlayerSkinned skinned = new PlayerSkinned();
skinned.FreeRepop = packet.ReadBool();
if (packet.CanRead())
skinned.FreeRepop = packet.ReadBool();
SendPacketToClient(skinned);
}
}
Expand Down
5 changes: 5 additions & 0 deletions HermesProxy/World/Client/PacketHandlers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,12 @@ void HandleQueryGameObjectResposne(WorldPacket packet)
}

for (int i = 0; i < 24; i++)
{
if (!packet.CanRead())
break;

gameObject.Data[i] = packet.ReadInt32();
}

if (LegacyVersion.AddedInVersion(ClientVersionBuild.V3_0_2_9056))
gameObject.Size = packet.ReadFloat();
Expand Down
6 changes: 6 additions & 0 deletions HermesProxy/World/Client/PacketHandlers/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ void HandleSpellFailedOther(WorldPacket packet)
[PacketHandler(Opcode.SMSG_SPELL_START)]
void HandleSpellStart(WorldPacket packet)
{
if (GetSession().GameState.CurrentMapId == null)
return;

SpellStart spell = new SpellStart();
spell.Cast = HandleSpellStartOrGo(packet, false);

Expand Down Expand Up @@ -375,6 +378,9 @@ void HandleSpellStart(WorldPacket packet)
[PacketHandler(Opcode.SMSG_SPELL_GO)]
void HandleSpellGo(WorldPacket packet)
{
if (GetSession().GameState.CurrentMapId == null)
return;

SpellGo spell = new SpellGo();
spell.Cast = HandleSpellStartOrGo(packet, true);
if (GetSession().GameState.CurrentPlayerGuid == spell.Cast.CasterUnit &&
Expand Down

0 comments on commit a4e8ae4

Please sign in to comment.