Core/PacketIO: Updated CMSG_UPDATE_MISSILE_TRAJECTORY to 9.1.5

This commit is contained in:
Shauren
2021-11-02 22:53:56 +01:00
parent aae288e049
commit 74eb6814a1
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ void WorldSession::HandleUpdateMissileTrajectory(WorldPackets::Spells::UpdateMis
{
Unit* caster = ObjectAccessor::GetUnit(*_player, packet.Guid);
Spell* spell = caster ? caster->GetCurrentSpell(CURRENT_GENERIC_SPELL) : nullptr;
if (!spell || spell->m_spellInfo->Id != uint32(packet.SpellID) || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
if (!spell || spell->m_spellInfo->Id != uint32(packet.SpellID) || spell->m_castId != packet.CastID || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
return;
spell->m_targets.ModSrc(packet.FirePos);
@@ -954,6 +954,7 @@ WorldPacket const* WorldPackets::Spells::NotifyMissileTrajectoryCollision::Write
void WorldPackets::Spells::UpdateMissileTrajectory::Read()
{
_worldPacket >> Guid;
_worldPacket >> CastID;
_worldPacket >> MoveMsgID;
_worldPacket >> SpellID;
_worldPacket >> Pitch;
@@ -984,6 +984,7 @@ namespace WorldPackets
void Read() override;
ObjectGuid Guid;
ObjectGuid CastID;
uint16 MoveMsgID = 0;
int32 SpellID = 0;
float Pitch = 0.0f;