diff options
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index edcfcdd7a74..fc951be491f 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -28,6 +28,7 @@ #include "DatabaseEnv.h" #include "DisableMgr.h" #include "DynamicObject.h" +#include "G3DPosition.hpp" #include "GameObjectAI.h" #include "GridNotifiersImpl.h" #include "Guild.h" @@ -5639,7 +5640,7 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint else if (m_preGeneratedPath->IsInvalidDestinationZ(target)) // Check position z, if in a straight line return SPELL_FAILED_NOPATH; - m_preGeneratedPath->ReducePathLenghtByDist(objSize); // move back + m_preGeneratedPath->ShortenPathUntilDist(PositionToVector3(target), objSize); // move back } break; } |