Core/PacketIO: Updated CMSG_UPDATE_MISSILE_TRAJECTORY to 9.1.5
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user