Core/Spells: Fixed charge effects with non-explicit targets

This commit is contained in:
Shauren committed 2013-02-13 20:21:26 +01:00
1 parent 20cd6cfc61
commit d926ad63c0
9 files changed
+34 -30

No files matched your search

+2 -1
View File
@@ -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);