Core/PacketIO: Updated CMSG_UPDATE_MISSILE_TRAJECTORY to 9.1.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/74eb6814a1e6774fadfde1ba0288a9612a34f805)
This commit is contained in:
hondacrx
2021-11-07 17:11:14 -05:00
parent 66fb7c75b9
commit 01f2e764a6
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ namespace Game
{ {
Unit caster = Global.ObjAccessor.GetUnit(GetPlayer(), packet.Guid); Unit caster = Global.ObjAccessor.GetUnit(GetPlayer(), packet.Guid);
Spell spell = caster ? caster.GetCurrentSpell(CurrentSpellTypes.Generic) : null; Spell spell = caster ? caster.GetCurrentSpell(CurrentSpellTypes.Generic) : null;
if (!spell || spell.m_spellInfo.Id != packet.SpellID || !spell.m_targets.HasDst() || !spell.m_targets.HasSrc()) if (!spell || spell.m_spellInfo.Id != packet.SpellID || spell.m_castId != packet.CastID || !spell.m_targets.HasDst() || !spell.m_targets.HasSrc())
return; return;
Position pos = spell.m_targets.GetSrcPos(); Position pos = spell.m_targets.GetSrcPos();
@@ -1067,6 +1067,7 @@ namespace Game.Networking.Packets
public override void Read() public override void Read()
{ {
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
CastID = _worldPacket.ReadPackedGuid();
MoveMsgID = _worldPacket.ReadUInt16(); MoveMsgID = _worldPacket.ReadUInt16();
SpellID = _worldPacket.ReadUInt32(); SpellID = _worldPacket.ReadUInt32();
Pitch = _worldPacket.ReadFloat(); Pitch = _worldPacket.ReadFloat();
@@ -1081,6 +1082,7 @@ namespace Game.Networking.Packets
} }
public ObjectGuid Guid; public ObjectGuid Guid;
public ObjectGuid CastID;
public ushort MoveMsgID; public ushort MoveMsgID;
public uint SpellID; public uint SpellID;
public float Pitch; public float Pitch;