Core/Spells: Fixed charge effects with non-explicit targets
This commit is contained in:
1 parent
20cd6cfc61
commit
d926ad63c0
9 files changed
+34
-30
No files matched your search
@@ -4918,7 +4918,8 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
|
||||
|
||||
if (effectHandleMode == SPELL_EFFECT_HANDLE_LAUNCH_TARGET)
|
||||
{
|
||||
if (m_preGeneratedPath.GetPathType() & PATHFIND_NOPATH)
|
||||
// Spell is not using explicit target - no generated path
|
||||
if (m_preGeneratedPath.GetPathType() == PATHFIND_BLANK)
|
||||
{
|
||||
Position pos;
|
||||
unitTarget->GetContactPoint(m_caster, pos.m_positionX, pos.m_positionY, pos.m_positionZ);
|
||||
|
||||
Reference in new issue
Block a user