diff options
| author | Shauren <shauren.trinity@gmail.com> | 2013-02-13 20:21:26 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2013-02-13 20:21:26 +0100 |
| commit | d926ad63c037457198cec8a28a86863643d92dc6 (patch) | |
| tree | f75b8869059d5dcb6816ece0a9872f2ec1bc4ced /src/server/game/Spells/SpellEffects.cpp | |
| parent | 20cd6cfc61414c47a6ed784e62f967ca6b44960e (diff) | |
Core/Spells: Fixed charge effects with non-explicit targets
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 8b440b665ad..93e4b2e4771 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -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); |
