Core/Spells: fixed some targeting cases for trigger missiles
This commit is contained in:
1 parent
154d283d3a
commit
1f87277ff6
1 file changed
+4
-1
@@ -756,7 +756,10 @@ void Spell::EffectTriggerMissileSpell(SpellEffIndex effIndex)
|
||||
if (spellInfo->GetExplicitTargetMask() & TARGET_FLAG_DEST_LOCATION)
|
||||
targets.SetDst(m_targets);
|
||||
|
||||
targets.SetUnitTarget(m_caster);
|
||||
if (Unit* target = m_targets.GetUnitTarget())
|
||||
targets.SetUnitTarget(target);
|
||||
else
|
||||
targets.SetUnitTarget(m_caster);
|
||||
}
|
||||
|
||||
CustomSpellValues values;
|
||||
|
||||
Reference in new issue
Block a user