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:
@@ -613,7 +613,7 @@ namespace Game
|
||||
{
|
||||
Unit caster = Global.ObjAccessor.GetUnit(GetPlayer(), packet.Guid);
|
||||
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;
|
||||
|
||||
Position pos = spell.m_targets.GetSrcPos();
|
||||
|
||||
Reference in New Issue
Block a user