mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*(More) correct implementation of SPELL_EFFECT_PULL_TOWARDS_DEST(145)
--HG-- branch : trunk
This commit is contained in:
@@ -231,7 +231,7 @@ void SpellCastTargets::Update(Unit* caster)
|
||||
m_itemTargetEntry = m_itemTarget->GetEntry();
|
||||
}
|
||||
// update positions by transport move
|
||||
if (m_srcTransGUID)
|
||||
if (HasSrc() && m_srcTransGUID)
|
||||
{
|
||||
if (WorldObject * transport = ObjectAccessor::GetWorldObject(*caster, m_srcTransGUID))
|
||||
{
|
||||
@@ -239,7 +239,7 @@ void SpellCastTargets::Update(Unit* caster)
|
||||
m_srcPos.RelocateOffset(m_srcTransOffset);
|
||||
}
|
||||
}
|
||||
if (m_dstTransGUID)
|
||||
if (HasDst() && m_dstTransGUID)
|
||||
{
|
||||
if (WorldObject * transport = ObjectAccessor::GetWorldObject(*caster, m_dstTransGUID))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user